We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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.



125.8k
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.