123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <?php
- interface Throwable extends Stringable
- {
- public function getMessage(): string;
-
- public function getCode();
- public function getFile(): string;
- public function getLine(): int;
- public function getTrace(): array;
- public function getPrevious(): ?Throwable;
- public function getTraceAsString(): string;
- }
- class Exception implements Throwable
- {
-
- protected $message = "";
- private string $string = "";
-
- protected $code = 0;
- protected string $file = "";
- protected int $line = 0;
- private array $trace = [];
- private ?Throwable $previous = null;
- private function __clone(): void {}
- public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {}
-
- public function __wakeup(): void {}
- final public function getMessage(): string {}
-
- final public function getCode() {}
- final public function getFile(): string {}
- final public function getLine(): int {}
- final public function getTrace(): array {}
- final public function getPrevious(): ?Throwable {}
- final public function getTraceAsString(): string {}
- public function __toString(): string {}
- }
- class ErrorException extends Exception
- {
- protected int $severity = E_ERROR;
- public function __construct(
- string $message = "",
- int $code = 0,
- int $severity = E_ERROR,
- ?string $filename = null,
- ?int $line = null,
- ?Throwable $previous = null
- ) {}
- final public function getSeverity(): int {}
- }
- class Error implements Throwable
- {
-
- protected $message = "";
- private string $string = "";
-
- protected $code = 0;
- protected string $file = "";
- protected int $line;
- private array $trace = [];
- private ?Throwable $previous = null;
-
- private function __clone(): void {}
-
- public function __construct(string $message = "", int $code = 0, ?Throwable $previous = null) {}
-
- public function __wakeup(): void {}
-
- final public function getMessage(): string {}
-
- final public function getCode() {}
-
- final public function getFile(): string {}
-
- final public function getLine(): int {}
-
- final public function getTrace(): array {}
-
- final public function getPrevious(): ?Throwable {}
-
- final public function getTraceAsString(): string {}
-
- public function __toString(): string {}
- }
- class CompileError extends Error
- {
- }
- class ParseError extends CompileError
- {
- }
- class TypeError extends Error
- {
- }
- class ArgumentCountError extends TypeError
- {
- }
- class ValueError extends Error
- {
- }
- class ArithmeticError extends Error
- {
- }
- class DivisionByZeroError extends ArithmeticError
- {
- }
- class UnhandledMatchError extends Error
- {
- }
|