|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.waffle.validation.AbstractErrorMessage
public abstract class AbstractErrorMessage
Abstract base class for all error messages. Handles the error cause and the retrieval of stack messages.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.codehaus.waffle.validation.ErrorMessage |
---|
ErrorMessage.Type |
Field Summary | |
---|---|
protected java.lang.Throwable |
cause
|
Constructor Summary | |
---|---|
protected |
AbstractErrorMessage(java.lang.Throwable cause)
|
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Returns the throwable that caused the error |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.waffle.validation.ErrorMessage |
---|
getMessage, getType |
Field Detail |
---|
protected java.lang.Throwable cause
Constructor Detail |
---|
protected AbstractErrorMessage(java.lang.Throwable cause)
Method Detail |
---|
public java.util.List<java.lang.String> getStackMessages()
ErrorMessage
getStackMessages
in interface ErrorMessage
public java.lang.Throwable getCause()
ErrorMessage
getCause
in interface ErrorMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |