Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Error codes

Hi everybody! Where can I find list of all codes from $exception->getCode() ? like 2 is for 'cannot load controller', 5 = 'action not found' etc.

Thank you.



56.7k
Accepted
answer

I'm not sure such a list exists. You can call $exception->getMessage() to get the text equivalent.

My guess is you'll have to look at the C source.