protected function onErrorResponse($error_code, $error_message, $response) {
    $message = print_r(
      [
        'code'      => $error_code,
        'message'   => $error_message,
        'response'  => $response
      ],
      true
    );
    $this->triggerError($message);
  }
protected function onErrorResponse($error_code, $error_message, $response) {
    $message = print_r(
      [
        'code'      => $error_code,
        'message'   => $error_message,
        'response'  => $response
      ],
      true
    );
    $this->triggerError($message);
  }
protected function onErrorResponse ( $ error_code , $ error_message , $ response ) { $ message = print_r ( [ 'code' => $ error_code , 'message' => $ error_message , 'response' => $ response ] , true ) ; $ this -> triggerError ( $ message ) ; }
Callback for error HTTP response.

@param (int) $error_code HTTP status code.
@param (string) $error_message HTTP status message.
@param (object) $response Structured object.
Callback for error HTTP response .