public function __construct($message, $code = 0, $body = '', $httpCode = -1, Exception $previous = null) { parent::__construct($message, $code, $previous); $this->httpCode = $httpCode; $this->body = $body; }
public function __construct($format, array $supportedFormats, $code = 0, Exception $previous = null) { $message = sprintf('Format "%s" is not supported. Supported formats are: %s', $format, implode(', ', $supportedFormats)); parent::__construct($message, $code, $previous); }