|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sapia.validator.ValidationErr
public class ValidationErr
An instance of this class represents a validation error.
| Method Summary | |
|---|---|
java.lang.String |
getId()
Returns the identifier of the rule that failed. |
java.lang.String |
getMsg()
Returns the message of this error. |
java.lang.String |
getStackTrace()
Returns the stack trace of the Throwable that this instance
encapsulates. |
java.lang.Throwable |
getThrowable()
Returns the Throwable of this instance, if
the latter was indeed constructed with a Throwable. |
boolean |
isThrowable()
Returns true if this instance was constructed with
a Throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getId()
Rule.public java.lang.String getMsg()
Throwable, then that instance's message is returned.
null if no message was set.public java.lang.Throwable getThrowable()
Throwable of this instance, if
the latter was indeed constructed with a Throwable.
Throwable.public boolean isThrowable()
true if this instance was constructed with
a Throwable.
true if this instance was constructed with
a Throwable.public java.lang.String getStackTrace()
Throwable that this instance
encapsulates. Client applications should ensure that the internal error object
is indeed a Throwable by calling the isThrowable() method
on this instance.
Throwable,
as a string.isThrowable().
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||