This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hey Guys,
Just working on my first real OctoberCMS project, and I need some help with exception catching. In Laravel 5 there is an App\Exceptions\Handler class, this is the place where I normally catch my exceptions. I found the same handler for October, but that one is in October\Rain\Foundation\Exception\Handler. Not a good place to edit a file ;)
Does somebody have a suggestions how I should implement this in OctoberCMS?
Thx in advance, Chris
Anybody?
Just to be clear, I'm talking about this: http://laravel.com/docs/5.0/errors#handling-errors
In bootstrap/app.php it contains the binding for the exception handler:
$app->singleton(
'Illuminate\Contracts\Debug\ExceptionHandler',
'October\Rain\Foundation\Exception\Handler'
);
You would need to create a class that extends October\Rain\Foundation\Exception\Handler and then change that second argument to point to that class. Where you put that class is up to you; I pulled in the app directory from Laravel 5 (which contains the App\Exceptions\Handler class), but you could also do it in an October plugin.
See documentation : https://octobercms.com/docs/services/error-log#exception-handling
App::error(function(RuntimeException $exception) { // Handle the exception... });
Last updated
hi can some one guide me with handling exception of this
https://github.com/tymondesigns/jwt-auth/wiki/Authentication
1-6 of 6