|
||||||||||
| 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 | |
|---|---|
String |
getId()
Returns the identifier of the rule that failed. |
String |
getMsg()
Returns the message of this error. |
String |
getStackTrace()
Returns the stack trace of the Throwable that this instance
encapsulates. |
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 String getId()
Rule.public String getMsg()
Throwable, then that instance's message is returned.
null if no message was set.public 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 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 | |||||||||