this question was published often, but I couldn´t find any answer to it.
When the authentication fails for some reason, my LoginModule throws an exception with the error message.
How to get this exception in my error page?
Should I have to throw another Exception as LoginException?
I just wanted to add that I am using Forma-Based Authentication.