Skip to content

Error Handling

Class for the error handling are included inside the includes folder as error_handling.php.

use

use App\ErrorHandling;

to include the ErrorHandling class.

ErrorHandling::_404();

for custom 404 error message

ErrorHandling::_404({error-message});
ErrorHandling::_405();

for custom 405 error message

ErrorHandling::_405({error-message});
ErrorHandling::_500();

for custom 500 error message

ErrorHandling::_500({error-message});