Annotation Interface SoapFault


@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited public @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:
  • Element Details

    • faultCode

      FaultCode faultCode
      The fault code.
    • customFaultCode

      String customFaultCode
      The custom fault code, to be used if faultCode() is set to FaultCode.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 faultStringOrReason
      The fault string or reason text. By default, it is set to the exception message.
      Default:
      ""
    • locale

      String locale
      The fault string locale. By default, it is English.
      Default:
      "en"