org.loom.exception
Class UnhandledValidationErrorsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.loom.exception.UnhandledValidationErrorsException
- All Implemented Interfaces:
- java.io.Serializable, HttpThrowable, LocaleAwareThrowable
public class UnhandledValidationErrorsException
- extends java.lang.RuntimeException
- implements LocaleAwareThrowable, HttpThrowable
This exception is raised when there are validation errors but there is no user form to redirect to.
This usually means that there is a malformed redirect or GET link somewhere.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnhandledValidationErrorsException
public UnhandledValidationErrorsException(Messages messages,
MessagesRepository repository)
getMessages
public Messages getMessages()
getLocaleAwareMessage
public Message getLocaleAwareMessage()
- Specified by:
getLocaleAwareMessage
in interface LocaleAwareThrowable
- Returns:
- the message key that will be looked for ion the current MessagesRepository
getHttpError
public int getHttpError()
- 400 (malformed request) seems the most appropiate http error to return
- Specified by:
getHttpError
in interface HttpThrowable
- Returns:
- the HTTP error code that should be returned to the browser for this error.