diff options
Diffstat (limited to 'app/Core/Http/InvalidStatusException.php')
-rw-r--r-- | app/Core/Http/InvalidStatusException.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/Core/Http/InvalidStatusException.php b/app/Core/Http/InvalidStatusException.php index 2d4a8d36..9834fe65 100644 --- a/app/Core/Http/InvalidStatusException.php +++ b/app/Core/Http/InvalidStatusException.php @@ -5,15 +5,22 @@ namespace Kanboard\Core\Http; class InvalidStatusException extends ClientException { protected $statusCode = 0; + protected $body = ''; - public function __construct($message, $statusCode) + public function __construct($message, $statusCode, $body) { parent::__construct($message); $this->statusCode = $statusCode; + $this->body = $body; } public function getStatusCode() { return $this->statusCode; } + + public function getBody() + { + return $this->body; + } } |