PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
MangoPay
/
Libraries
<?php namespace MangoPay\Libraries; /** * Response exception class */ class ResponseException extends Exception { /** * Array with response code and corresponding response message * @var array */ private $_responseCodes = array( 200 => 'OK', 206 => 'PartialContent', 400 => 'Bad request', 401 => 'Unauthorized', 403 => 'Prohibition to use the method', 404 => 'Not found', 405 => 'Method not allowed', 413 => 'Request entity too large', 422 => 'Unprocessable entity', 500 => 'Internal server error', 501 => 'Not implemented' ); /** * Error details * @var Error */ private $_errorInfo; /** * Request URL * @var string */ public $RequestUrl; /** * Construct * @param int $code Response code * @param Error $errorInfo Details with the error */ public function __construct($requestUrl, $code, $errorInfo = null) { $this->RequestUrl = $requestUrl; $this->_code = $code; if (isset($this->_responseCodes[$code])) { $errorMsg = $this->_responseCodes[$code]; } else { $errorMsg = 'Unknown response error'; } if (!is_null($errorInfo)) { $errorMsg .= '. ' . $errorInfo->Message; $this->_errorInfo = $errorInfo; } parent::__construct($errorMsg, $code); } /** * Get Error object returned by REST API * @return Error */ public function GetErrorDetails() { return $this->_errorInfo; } }
[+]
..
[-] Error.php
[edit]
[-] ApiOAuth.php
[edit]
[-] ResponseException.php
[edit]
[-] AuthorizationTokenManager.php
[edit]
[-] UrlTool.php
[edit]
[-] HttpResponse.php
[edit]
[-] HttpCurl.php
[edit]
[-] Exception.php
[edit]
[-] Logs.php
[edit]
[-] IStorageStrategy.php
[edit]
[-] OAuthToken.php
[edit]
[-] Dto.php
[edit]
[-] Upload.php
[edit]
[-] HttpBase.php
[edit]
[-] RequestType.php
[edit]
[-] ApiBase.php
[edit]
[-] Configuration.php
[edit]
[-] EntityBase.php
[edit]
[-] RestTool.php
[edit]
[-] AuthenticationHelper.php
[edit]
[-] DefaultStorageStrategy.php
[edit]
[-] Document.php
[edit]