QuioteException
QuioteException is the base class for all Quiote related exceptions.
Rendering an exception to a client belongs to ExceptionRenderer and its registry, not here: the default SafeRenderer reveals nothing about the exception, and the developer-facing page comes from the opt-in quioteframework/whoops package, which brings its own stack-frame and source rendering.
Synopsis
Section titled “Synopsis”class QuioteException extends Exception
| Extends | Exception |
| Since | 1.0.0 |
| Source | Exception/QuioteException.php |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $message = '', string|int $mixedCode = 0, ?Throwable $previous = null): mixed
| Parameter | Type | Description |
|---|---|---|
$message | string | |
$mixedCode | `string“ | “int` |
$previous | ?Throwable |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
| [`getOriginalCode(): string | int`](#getoriginalcode) |
getOriginalCode()
Section titled “getOriginalCode()”public function getOriginalCode(): string|int
Returns the original code, which may be a string (e.g.
a PDO SQLSTATE like “42P01”).
Returns string``|``int
Inherited methods
Section titled “Inherited methods”These come from an ancestor and are documented where they are declared.
| Method | Declared in | Description |
|---|---|---|
getCode() | Exception | |
getFile() | Exception | |
getLine() | Exception | |
getMessage() | Exception | |
getPrevious() | Exception | |
getTrace() | Exception | |
getTraceAsString() | Exception |