public function ServicesClientConnectionResponseException::__construct in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/include/exception.inc \ServicesClientConnectionResponseException::__construct()
File
- services_client_connection/
include/ exception.inc, line 41 - Custom exception definitions
Class
- ServicesClientConnectionResponseException
- Common parent class for all services client module exceptions
Code
public function __construct($response, $request, $message = NULL, $code = NULL) {
// Save request and response source
$this->response = $response;
$this->request = $request;
$message = empty($message) ? $this
->getServicesMessage() : $message;
parent::__construct($message, $code);
}