La clase Yar_Server_Exception

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

Introducción

Se lanza en el lado del cliente cuando la petición RPC ha fallado en el servidor. Si el propio método del servicio remoto lanzó una excepción, su mensaje, código, fichero, línea y nombre de clase se transmiten, y Yar_Server_Exception::getType() devuelve el nombre de clase de la excepción original.

Sinopsis de la clase

class Yar_Server_Exception extends Exception {
/* Propiedades */
protected string $_type = "Yar_Exception_Server";
/* Propiedades heredadas */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Métodos */
public function getType(): string|int
/* Métodos heredados */
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
}

Propiedades

_type

El nombre de clase de la excepción lanzada por el servicio remoto, o "Yar_Exception_Server" si el error no fue causado por una excepción del código de usuario. Se lee mediante Yar_Server_Exception::getType().

Tabla de contenidos

add a note

User Contributed Notes

There are no user contributed notes for this page.