The Yar_Server_Exception class

(No version information available, might only be in Git)

Giriş

Thrown on the client side when the RPC request failed on the server. If the remote service method itself threw an exception, its message, code, file, line and class name are carried over, and Yar_Server_Exception::getType() returns the class name of the original exception.

Sınıf Sözdizimi

class Yar_Server_Exception extends Exception {
/* Özellikler */
protected string $_type = "Yar_Exception_Server";
/* Miras alınan özellikler */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Yöntemler */
public function getType(): string|int
/* Miras alınan yöntemler */
public function Exception::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}

Özellikler

_type

The class name of the exception thrown by the remote service, or "Yar_Exception_Server" if the error was not caused by a userland exception. Read via Yar_Server_Exception::getType().

İçindekiler

add a note

User Contributed Notes

There are no user contributed notes for this page.