Support the ongoing development of Laravel.io →
Configuration Architecture

Having some issues with this error message, not getting anything else and not sure where to look. This is on a new laravel install I am working with and using Codeception as my testing framework.

PHP Fatal error: Uncaught exception 'ReflectionException' with message 'Class PermissionException does not exist' in /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php:316\nStack trace:\n#0 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(316): ReflectionParameter->getClass()\n#1 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(300): Illuminate\\Exception\\Handler->hints(Object(ReflectionFunction), Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#2 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(237): Illuminate\\Exception\\Handler->handlesException(Object(Closure), Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#3 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php(145): Illuminate\\Exception\\Handler->callCustomHandlers(Object(Symfony\\Component\\Debug\\Exception\\FatalErrorException))\n#4 /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/ in /var/www/myapp-api/vendor/laravel/framework/src/Illuminate/Exception/Handler.php on line 316

Last updated 3 years ago.
0

I should add I am making an API and have taken some ideas from: https://github.com/akuzemchak/laracon-todo-api/blob/master/app/controllers/BaseController.php

Last updated 3 years ago.
0

@adamski, did you ever get this sorted out? I'm having the same issue trying to create a custom exception class. I can throw and catch the exception manually without a problem, but as soon as I add App::error(function(SimplePieException $exception, $code) {...} in my global.php file, I get the ReflectionException.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

adamski adamski Joined 17 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.