예제 #1
0
 function __construct($code, $message, $result)
 {
     $this->http_code = $code;
     $this->http_message = $message;
     $this->result = $result;
     if (isset($result["error"]) && is_array($result["error"]) && isset($result["error"]["code"])) {
         parent::__construct($result["error"]["code"], $result["error"]["message"], API_ERROR_TYPE);
     } else {
         parent::__construct($code, $message, API_ERROR_TYPE);
     }
 }
예제 #2
0
 function __construct($code, $message)
 {
     parent::__construct($code, $message, NOT_LOGGED_ERROR_TYPE);
 }
예제 #3
0
 function __construct($code, $message)
 {
     parent::__construct($code, $message, CURL_ERROR_TYPE);
 }
예제 #4
0
 function __construct($message)
 {
     parent::__construct(0, $message, INTERNAL_ERROR_TYPE);
 }