Annotation Interface SoapFault
Marks an exception class with the fault elements that should be returned whenever this exception is thrown.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe custom fault code, to be used iffaultCode()
is set toFaultCode.CUSTOM
.The fault string or reason text.The fault string locale.
-
Element Details
-
faultCode
FaultCode faultCodeThe fault code.
-
-
-
customFaultCode
String customFaultCodeThe custom fault code, to be used iffaultCode()
is set toFaultCode.CUSTOM
.The format used is that of
QName.toString()
, i.e. "{" + Namespace URI + "}" + local part, where the namespace is optional.Note that custom Fault Codes are only supported on SOAP 1.1.
- Default:
- ""
-
faultStringOrReason
String faultStringOrReasonThe fault string or reason text. By default, it is set to the exception message.- Default:
- ""
-
locale
String localeThe fault string locale. By default, it is English.- Default:
- "en"
-