12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- defined('GNUSOCIAL') || die();
- class ClientException extends Exception
- {
- public function __construct(
- string $message = '',
- int $code = 500,
- Throwable $previous = null
- ) {
- parent::__construct($message, $code, $previous);
- }
-
- public function __toString()
- {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
|