Skip to content

Commit

Permalink
Added new responseId field to base exception class. (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Dec 26, 2017
1 parent 45be7c9 commit c52b859
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Exception/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,32 @@ class ApiException extends Exception
*/
private $responseCode;

/**
* @var string
*/
private $responseId;

/**
* @param string $message
* @param int $responseCode
* @param string $responseId
*/
public function __construct(string $message, int $responseCode)
public function __construct(string $message, int $responseCode, string $responseId)
{
$this->responseCode = $responseCode;
$this->responseId = $responseId;

parent::__construct($message);
}

/**
* @return string
*/
public function getResponseId(): string
{
return $this->responseId;
}

/**
* @return int
*/
Expand Down

0 comments on commit c52b859

Please sign in to comment.