ErrorHandler
        
        System Error Handler, this class handles application exception events.
    
    
 class System\Classes\ErrorHandler
extends Winter\Storm\Exception\ErrorHandlerExtends
| Class | Description | 
|---|---|
| ErrorHandler | System Error Handler, this class handles application exception events. | 
Properties
inherited protected static $activeMask : Throwable | null
A prepared mask exception used to mask any exception fired.
            
                            
                    inherited
                
            
            
                protected
            
                            
                    static
                
            
            $maskLayers
            
                :
                                                            array
                                                                        
                        = []
                    
                            
        
                    A collection of masks, so multiples can be applied in order.
Methods
public handleCustomError () : mixed
Looks up an error page using the CMS route "/error". If the route does not exist, this function will use the error view found in the Cms module.
Error page contents.
public handleDetailedError ($exception) : View
Displays the detailed system exception page.
| Property | Type | Description | 
|---|---|---|
| $exception | mixed | mixed | 
Object containing the error page.
inherited public static applyMask (Throwable $exception) : void
Prepares a mask exception to be used when any exception fires.
| Property | Type | Description | 
|---|---|---|
| $exception | Throwable | Throwable The mask exception. | 
inherited public beforeHandleError ($exception) : void
We are about to display an error page to the user, provide an opportunity to handle extra functions.
| Property | Type | Description | 
|---|---|---|
| $exception | mixed | mixed | 
inherited public static getDetailedMessage (Throwable $exception) : string
Returns a more descriptive error message if application debug mode is turned on.
| Property | Type | Description | 
|---|---|---|
| $exception | Throwable | Throwable | 
inherited public handleException (Throwable $proposedException) : mixed
All exceptions are piped through this method from the framework workflow. This method will mask any foreign exceptions with a "scent" of the native application's exception, so it can render correctly when displayed on the error page.
| Property | Type | Description | 
|---|---|---|
| $proposedException | Throwable | Throwable The exception candidate that has been thrown. | 
Error page contents
inherited public static removeMask () : void
Destroys the prepared mask by applyMask()