I have a web application secured by Shiro configured with a custom realm that
loads authorization information from a database.
There are a number of error cases that the realm can face.
These include things like the user not found in the database, or the user
account is marked as disabled.

Currently these cases are handled by throwing an AuthorizationException
however this ultimately results in a HTTP 500 error being displayed to the
user.

What is the recommended method of handling these exception cases?  Is there
a way to catch these exceptions and redirect the browser to an error page?

Thanks.



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Realm-Exception-Handling-tp7580979.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to