org.codehaus.waffle.validation
Interface ErrorMessage

All Known Implementing Classes:
AbstractErrorMessage, BindErrorMessage, FieldErrorMessage, GlobalErrorMessage

public interface ErrorMessage

Represents a validation error message

Author:
Michael Ward, Mauro Talevi

Nested Class Summary
static class ErrorMessage.Type
           
 
Method Summary
 java.lang.Throwable getCause()
          Returns the throwable that caused the error
 java.lang.String getMessage()
          Returns the formatted message
 java.util.List<java.lang.String> getStackMessages()
          Returns the list of messages for the exception stack that cause the error, ie the list of Throwable.getMessage() from the stack.
 ErrorMessage.Type getType()
          Returns the type of error message
 

Method Detail

getType

ErrorMessage.Type getType()
Returns the type of error message

Returns:
The Type

getMessage

java.lang.String getMessage()
Returns the formatted message

Returns:
The message

getStackMessages

java.util.List<java.lang.String> getStackMessages()
Returns the list of messages for the exception stack that cause the error, ie the list of Throwable.getMessage() from the stack.

Returns:
The List of stack messages

getCause

java.lang.Throwable getCause()
Returns the throwable that caused the error

Returns:
The Throwable cause


Copyright © 2008. All Rights Reserved.