You are here

public function ServicesClientConnectionResponseException::getServicesMessage in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/include/exception.inc \ServicesClientConnectionResponseException::getServicesMessage()

Provide human readable error mesage.

1 call to ServicesClientConnectionResponseException::getServicesMessage()
ServicesClientConnectionResponseException::__construct in services_client_connection/include/exception.inc

File

services_client_connection/include/exception.inc, line 65
Custom exception definitions

Class

ServicesClientConnectionResponseException
Common parent class for all services client module exceptions

Code

public function getServicesMessage() {
  $msg = $this->response->error_code . ' ' . $this->response->error_message;
  if (!empty($this->response->services_error)) {
    $msg .= ': ' . $this->response->services_error;
  }
  return $msg;
}