public class SOAPFaultException extends ProtocolException
SOAPFaultException
异常表示SOAP 1.1或1.2故障。
一个SOAPFaultException
包裹SAAJ SOAPFault
管理故障的肥皂的具体表现。对javax.xml.soap.SOAPFactory
的createFault
方法可以用构造函数创建一个实例使用javax.xml.soap.SOAPFault
。SOAPBinding
包含由结合实例使用SOAPFactory
存取器。
注意,getFault
值异常的searializing时使用的SOAP错误的部分。
指的是一个完整的描述肥皂故障的肥皂规范。
SOAPFault
,
SOAPBinding.getSOAPFactory()
,
ProtocolException
,
Serialized Form
Constructor and Description |
---|
SOAPFaultException(SOAPFault fault)
构造函数soapfaultexception
|
Modifier and Type | Method and Description |
---|---|
SOAPFault |
getFault()
有嵌入式
SOAPFault 实例。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public SOAPFaultException(SOAPFault fault)
fault
-
SOAPFault
代表故障
SOAPFactory.createFault(java.lang.String, javax.xml.namespace.QName)
public SOAPFault getFault()
SOAPFault
实例。
javax.xml.soap.SOAPFault
SOAP错误元素
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.