/** * V2CommunicationException constructor. * * @param string $requestType * @param CurlHttpRequestResult $curlResult * @param string $message * @param int $code * @param \Exception|null $previous * @param null $data */ public function __construct($requestType, CurlHttpRequestResult $curlResult, $message, $code = 0, \Exception $previous = null, $data = null) { $this->curlResult = $curlResult; $this->requestType = $requestType; parent::__construct($message, $code, $previous, $data); }
/** * Constructor * * @param string $message The message string. * @param int $code The exception code. * @param string $output The (partial) output of the command. * @param int $statusCode The status code for the command. * @param \Exception $previous The previous exception. * @param mixed $data Any debugging data. */ public function __construct($message = "", $code = 0, $output = null, $statusCode = null, \Exception $previous = null, $data = null) { parent::__construct($message, $code, $previous, $data); $this->output = $output; $this->statusCode = $statusCode; }