| 1 |
<?php |
| 2 |
namespace AliNext_Lite;; |
| 3 |
|
| 4 |
use Exception; |
| 5 |
use Throwable; |
| 6 |
|
| 7 |
class ServiceException extends Exception |
| 8 |
{ |
| 9 |
public function __construct($message, $code = 0, Throwable $previous = null) { |
| 10 |
parent::__construct($message, $code, $previous); |
| 11 |
} |
| 12 |
|
| 13 |
public function __toString() { |
| 14 |
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; |
| 15 |
} |
| 16 |
|
| 17 |
} |
| 18 |
|