public class ValidationException extends JAXBException
ValidationEventHandler可能导致在验证操作期间抛出此异常。 见ValidationEventHandler.handleEvent(ValidationEvent)
。
JAXBException
, Validator
, Serialized Form
Constructor and Description |
---|
ValidationException(String message)
构造具有指定详细消息的ValidationException。
|
ValidationException(String message, String errorCode)
使用指定的详细消息和供应商特定的错误代码构造ValidationException。
|
ValidationException(String message, String errorCode, Throwable exception)
使用指定的详细消息,供应商特定的错误代码和linkedException构造ValidationException。
|
ValidationException(String message, Throwable exception)
使用指定的详细消息和linkedException构造ValidationException。
|
ValidationException(Throwable exception)
使用linkedException构造ValidationException。
|
getCause, getErrorCode, getLinkedException, printStackTrace, printStackTrace, printStackTrace, setLinkedException, toString
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, setStackTrace
public ValidationException(String message)
message
- 异常的描述
public ValidationException(String message, String errorCode)
message
- 异常的描述
errorCode
- 指定供应商特定错误代码的字符串
public ValidationException(Throwable exception)
exception
- 链接异常
public ValidationException(String message, Throwable exception)
message
- 异常的描述
exception
- 链接异常
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.