diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 19:23:32 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 19:23:32 +0200 |
commit | fcf141926da98a4a656a785df991858819961319 (patch) | |
tree | 049c1ff6b770e759ca7a96b30e6476b9f18cbfa3 /application/api/exceptions/ApiInternalException.php | |
parent | 8868f3ca461011a8fb6dd9f90b60ed697ab52fc5 (diff) | |
parent | 54c8e8d2998c5ab5ffd08ae8f1fa11276773c16c (diff) | |
download | Shaarli-fcf141926da98a4a656a785df991858819961319.tar.gz Shaarli-fcf141926da98a4a656a785df991858819961319.tar.zst Shaarli-fcf141926da98a4a656a785df991858819961319.zip |
Merge tag 'v0.9.0' into latest
Release v0.9.0
Diffstat (limited to 'application/api/exceptions/ApiInternalException.php')
-rw-r--r-- | application/api/exceptions/ApiInternalException.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/application/api/exceptions/ApiInternalException.php b/application/api/exceptions/ApiInternalException.php new file mode 100644 index 00000000..1cb05532 --- /dev/null +++ b/application/api/exceptions/ApiInternalException.php | |||
@@ -0,0 +1,19 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Shaarli\Api\Exceptions; | ||
4 | |||
5 | /** | ||
6 | * Class ApiInternalException | ||
7 | * | ||
8 | * Generic exception, return a 500 HTTP code. | ||
9 | */ | ||
10 | class ApiInternalException extends ApiException | ||
11 | { | ||
12 | /** | ||
13 | * @inheritdoc | ||
14 | */ | ||
15 | public function getApiResponse() | ||
16 | { | ||
17 | return $this->buildApiResponse(500); | ||
18 | } | ||
19 | } | ||