From f92eb448cbee45640351c28855045d55ac258590 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 2 Mar 2018 13:41:37 -0800 Subject: Add response body to InvalidStatusException --- app/Core/Http/InvalidStatusException.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/Core/Http/InvalidStatusException.php') 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; + } } -- cgit v1.2.3