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); } }
function __construct($code, $message) { parent::__construct($code, $message, NOT_LOGGED_ERROR_TYPE); }
function __construct($code, $message) { parent::__construct($code, $message, CURL_ERROR_TYPE); }
function __construct($message) { parent::__construct(0, $message, INTERNAL_ERROR_TYPE); }