|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception org.jibx.runtime.JiBXException org.jibx.runtime.RecoverableException org.jibx.runtime.ValidationException
public class ValidationException
Validation exception class. This is used for marshalling and unmarshalling errors that relate to data content.
Constructor Summary | |
---|---|
ValidationException(java.lang.String msg)
Constructor from message. |
|
ValidationException(java.lang.String msg,
java.lang.Object obj)
Constructor from message and validation object. |
|
ValidationException(java.lang.String msg,
java.lang.Object obj,
IUnmarshallingContext ctx)
Constructor from message, validation object, and unmarshalling context. |
|
ValidationException(java.lang.String msg,
java.lang.Throwable root)
Constructor from message and wrapped exception. |
|
ValidationException(java.lang.String msg,
java.lang.Throwable root,
java.lang.Object obj)
Constructor from message, wrapped exception, and validation object. |
Method Summary | |
---|---|
static java.lang.String |
addDescription(java.lang.String msg,
java.lang.Object obj)
Add description information for a validation object to message. |
static java.lang.String |
describe(java.lang.Object obj)
Get description information for a validation object. |
java.lang.String |
getMessage()
Get exception description. |
Methods inherited from class org.jibx.runtime.JiBXException |
---|
getCause, getRootCause, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationException(java.lang.String msg)
msg
- message describing the exception conditionpublic ValidationException(java.lang.String msg, java.lang.Throwable root)
msg
- message describing the exception conditionroot
- exception which caused this exceptionpublic ValidationException(java.lang.String msg, java.lang.Object obj)
msg
- message describing the exception conditionobj
- source object for validation errorpublic ValidationException(java.lang.String msg, java.lang.Throwable root, java.lang.Object obj)
msg
- message describing the exception conditionroot
- exception which caused this exceptionobj
- source object for validation errorpublic ValidationException(java.lang.String msg, java.lang.Object obj, IUnmarshallingContext ctx)
msg
- message describing the exception conditionobj
- source object for validation errorctx
- context used for unmarshallingMethod Detail |
---|
public static java.lang.String describe(java.lang.Object obj)
Object.toString()
method call.
obj
- source object for validation error
public static java.lang.String addDescription(java.lang.String msg, java.lang.Object obj)
describe(java.lang.Object)
call to the supplied message,
with some appropriate formatting.
msg
- base message textobj
- source object for validation error
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |