-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add own exceptions to the library #37
Labels
Comments
Good point! |
If only I could find time to do all the stuff I need to do... 😢 |
+1 |
Much work has been done.. Some left;
|
This comment was marked as outdated.
This comment was marked as outdated.
Update:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While trying to add more meaningful messages to some of the typical errors, I've noticed that at some points in the library we are throwing simple exceptions with a message that's not really descriptive of the real problem, nor even translated. For instance, in
\SAML2\SOAP::receive()
:or in
\SAML2\Binding::getCurrentBinding()
:If these were custom exceptions, we could capture them easily and display a meaningful, translated error message to the user, depending on where we are. Therefore I think we should even move some of the exceptions in SimpleSAMLphp to this library, and extend them with specific ones.
The text was updated successfully, but these errors were encountered: