Error Handling
How AppException Works
AppException WorksHandling Errors
throw new \System\Core\AppException('An error occurred!', 0, null, 500);try {
// Code that might cause an error
} catch (\System\Core\AppException $e) {
$e->handle(); // Process the exception
}Custom Error Pages
Automatic Error Logging
Debug Mode
Usage in a Controller
Last updated
Was this helpful?