diff options
Diffstat (limited to 'app/Core/Http/InvalidStatusException.php')
-rw-r--r-- | app/Core/Http/InvalidStatusException.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Core/Http/InvalidStatusException.php b/app/Core/Http/InvalidStatusException.php new file mode 100644 index 00000000..2d4a8d36 --- /dev/null +++ b/app/Core/Http/InvalidStatusException.php @@ -0,0 +1,19 @@ +<?php + +namespace Kanboard\Core\Http; + +class InvalidStatusException extends ClientException +{ + protected $statusCode = 0; + + public function __construct($message, $statusCode) + { + parent::__construct($message); + $this->statusCode = $statusCode; + } + + public function getStatusCode() + { + return $this->statusCode; + } +} |