| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- class SysError extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
- class ParameterError extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
- class NetWorkError extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
- class HttpError extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
- class QyApiError extends Exception
- {
- public function __construct($message, $code = 0, Exception $previous = null) {
- parent::__construct($message, $code, $previous);
- }
- public function __toString() {
- return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
- }
- }
|