php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

Add Exception codes

Open nicumicle opened this issue 3 years ago • 0 comments

This is not an issue, but it is more of an enhancement.

I would like to be able to translate the exception messages, and currently, there is not an easy way to do that.

In order to do that, I believe adding an error code for each exception, will allow me to determine what exception is thrown and translate the error messages.

Also, having a different error code for each exception will allow developers to easily determine where the exception is thrown. For example, there is the Algorithm not supported string, that is thrown from 4 places.

nicumicle avatar Sep 21 '22 05:09 nicumicle