You are here

public function Github_HttpClient_Exception::__construct in Bibliography Module 7.2

Default constructor

Parameters

string $message:

int $code:

File

modules/CiteProc/Github/HttpClient/Exception.php, line 65

Class

Github_HttpClient_Exception
HttpClient communication error

Code

public function __construct($message = null, $code = null) {
  if (null === $message && null !== $code && array_key_exists((int) $code, self::$statusCodes)) {
    $message = sprintf('HTTP %d: %s', $code, self::$statusCodes[(int) $code]);
  }
  parent::__construct($message, $code);
}