harfang.exception
.. | |
---|---|
Exception | An exception is thrown when an error occurs somewhere in the application. It is used by the framework for error management. |
HTTPException | Represents an error that can be translated to an HTTP status code (404, 500, etc.) |
NotFoundException | Thrown whenever something is not found, server-side. |
WrappedException | Exceptions of this type are used when the error type is unknown. Harfang looks for an "Exception" instance or a String instance when catching errors. However, an error with a type not covered in the previous cases may be thrown. When the type is unknown, the framework wraps the error in a WrappedException. |