public function PayPalCheckoutHttpException::__construct in Commerce PayPal 7.2
Supplies a default message if none was supplied.
File
- modules/
checkout/ lib/ PayPalCheckoutExceptions.php, line 21 - Defines exception classes for use by the PayPalCheckoutClient class.
Class
- PayPalCheckoutHttpException
- Defines a base class for HTTP response related exceptions.
Code
public function __construct($message = '', $code = 0, \Exception $previous = NULL) {
if (empty($message)) {
$message = '';
if (!empty($code)) {
$message .= $code . ' ';
}
$message .= 'HTTP response status code not OK.';
}
parent::__construct($message, $code, $previous);
}