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)
构建一个指定详细信息的validationexception,供应商特定的错误代码,并linkedexception。
|
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.