org.loom.exception
Class UnhandledValidationErrorsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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

Constructor Summary
UnhandledValidationErrorsException(Messages messages, MessagesRepository repository)
           
 
Method Summary
 int getHttpError()
          400 (malformed request) seems the most appropiate http error to return
 Message getLocaleAwareMessage()
           
 Messages getMessages()
           
 
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
 
Methods inherited from interface org.loom.exception.HttpThrowable
getCause
 

Constructor Detail

UnhandledValidationErrorsException

public UnhandledValidationErrorsException(Messages messages,
                                          MessagesRepository repository)
Method Detail

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.