Keep exceptions http response generic and return the request ID for further tracing

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-10-25 13:45:59 +02:00
parent 100bc30d9b
commit 83fc4323f4
3 changed files with 58 additions and 41 deletions

View File

@@ -23,6 +23,12 @@
namespace OCA\Deck;
/**
* User facing exception that can be thrown with an error being reported to the frontend
* or consumers of the API
*
* This exception is catched in the ExceptionMiddleware
*/
class StatusException extends \Exception {
public function __construct($message) {
parent::__construct($message);