| java.lang.Object java.lang.Throwable java.lang.Exception org.jibx.runtime.JiBXException org.jibx.runtime.RecoverableException org.jibx.runtime.ValidationException
ValidationException | public class ValidationException extends RecoverableException (Code) | | Validation exception class. This is used for marshalling and unmarshalling
errors that relate to data content.
author: Dennis M. Sosnoski version: 1.0 |
Constructor Summary | |
public | ValidationException(String msg) Constructor from message. | public | ValidationException(String msg, Throwable root) Constructor from message and wrapped exception. | public | ValidationException(String msg, Object obj) Constructor from message and validation object. | public | ValidationException(String msg, Throwable root, Object obj) Constructor from message, wrapped exception, and validation object. | public | ValidationException(String msg, Object obj, IUnmarshallingContext ctx) Constructor from message, validation object, and unmarshalling context. |
ValidationException | public ValidationException(String msg)(Code) | | Constructor from message.
Parameters: msg - message describing the exception condition |
ValidationException | public ValidationException(String msg, Throwable root)(Code) | | Constructor from message and wrapped exception.
Parameters: msg - message describing the exception condition Parameters: root - exception which caused this exception |
ValidationException | public ValidationException(String msg, Object obj)(Code) | | Constructor from message and validation object.
Parameters: msg - message describing the exception condition Parameters: obj - source object for validation error |
ValidationException | public ValidationException(String msg, Throwable root, Object obj)(Code) | | Constructor from message, wrapped exception, and validation object.
Parameters: msg - message describing the exception condition Parameters: root - exception which caused this exception Parameters: obj - source object for validation error |
ValidationException | public ValidationException(String msg, Object obj, IUnmarshallingContext ctx)(Code) | | Constructor from message, validation object, and unmarshalling context.
Parameters: msg - message describing the exception condition Parameters: obj - source object for validation error Parameters: ctx - context used for unmarshalling |
addDescription | public static String addDescription(String msg, Object obj)(Code) | | Add description information for a validation object to message. This just
appends the result of a
ValidationException.describe call to the supplied message,
with some appropriate formatting.
Parameters: msg - base message text Parameters: obj - source object for validation error message with object description appended |
describe | public static String describe(Object obj)(Code) | | Get description information for a validation object. For an unmarshalled
object with source references available this returns the source position
description. Otherwise, it returns the result of a
java.lang.Object.toString method call.
Parameters: obj - source object for validation error object description text |
getMessage | public String getMessage()(Code) | | Get exception description.
message describing the exception condition |
|
|