/** * Creates a new ValidationException with the given nested * exception. * @param exception the nested exception */ public ValidationException(Exception exception) { super(exception); setIsTypeError(true); }
/** * Creates a new ValidationException with the given nested * exception. * @param exception the nested exception */ public ValidationException(Exception exception) { super(exception); setIsTypeError(true); }
/** * Creates a new ValidationException with the given message. * @param message the message for this Exception */ public ValidationException(String message) { super(message); setIsTypeError(true); }
/** * Creates a new ValidationException with the given message * and nested exception. * @param message the detail message for this exception * @param exception the nested exception */ public ValidationException(String message, Exception exception) { super(message, exception); setIsTypeError(true); }
/** * Creates a new ValidationException with the given message. * @param message the message for this Exception */ public ValidationException(String message) { super(message); setIsTypeError(true); }
/** * Creates a new ValidationException with the given message * and nested exception. * @param message the detail message for this exception * @param exception the nested exception */ public ValidationException(String message, Exception exception) { super(message, exception); setIsTypeError(true); }
/** * Create a new ValidationException from a message and a Locator. * @param message The error or warning message. * @param locator The locator object for the error or warning. */ public ValidationException(String message, SourceLocator locator) { super(message, locator); setIsTypeError(true); // With Xerces, it's enough to store the locator as part of the exception. But with Crimson, // the locator is destroyed when the parse terminates, which means the location information // will not be available in the final error message. So we copy the location information now, // as part of the exception object itself. setSourceLocator(locator); }
/** * Create a new ValidationException from a message and a Locator. * @param message The error or warning message. * @param locator The locator object for the error or warning. */ public ValidationException(String message, SourceLocator locator) { super(message, locator); setIsTypeError(true); // With Xerces, it's enough to store the locator as part of the exception. But with Crimson, // the locator is destroyed when the parse terminates, which means the location information // will not be available in the final error message. So we copy the location information now, // as part of the exception object itself. setSourceLocator(locator); }