This error takes an Exception and processes it, allows JSON exception output
This file is part of the project codename "AMANUENSIS"
- Author
- Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de
- Copyright
- 2015 I-SAN.de Webdesign & Hosting GbR GPL
| __construct |
( |
Exception |
$e = NULL, |
|
|
|
$code = NULL, |
|
|
|
$message = NULL, |
|
|
|
$languagestring = NULL |
|
) |
| |
When the Error is constructed, it will process the exception
- Parameters
-
| Exception | $e | - an Exception that shall be processed, optional if $message and $code are given |
| int | $code | - an error code, can override the one from the exception |
| string | $message | - an Error Message, can override the one from the exception |
Renders the Errordata in a script tag for index.php output
Renders an API Response with the error
- Returns
- string - a json object containing an error
Gets the json enocdet data of the error
- Returns
- string - JSON representation of the error
Gets an array containing the data
- Returns
- array - the object representationg the error
| setHeaders |
( |
|
$dontdie = false | ) |
|
Sets HTTP error headers
- Parameters
-
| boolean | $dontdie | - most of the time we want to finish after an error. If we don't, pass true |
The documentation for this class was generated from the following file:
- D:/Arbeit/PhpStormProjects/amanuensis/app/classes/errorhandling/amaException.php