Class Fault

All Implemented Interfaces:
Serializable

public class Fault extends UncheckedException
A Fault that occurs during invocation processing.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class UncheckedException
    • setMessage

      public void setMessage(String message)
    • getFaultCode

      public QName getFaultCode()
    • setFaultCode

      public Fault setFaultCode(QName c)
    • getDetail

      public Element getDetail()
      Returns the detail node.
      Returns:
      the detail node.
    • setDetail

      public void setDetail(Element details)
      Sets a details Node on this fault.
      Parameters:
      details - the detail node.
    • hasDetails

      public boolean hasDetails()
      Indicates whether this fault has a detail message.
      Returns:
      true if this fault has a detail message; false otherwise.
    • getOrCreateDetail

      public Element getOrCreateDetail()
      Returns the detail node. If no detail node has been set, an empty <detail> is created.
      Returns:
      the detail node.
    • getStatusCode

      public int getStatusCode()
      Returns http header status code.
      Returns:
      status code.
    • setStatusCode

      public void setStatusCode(int statusCode)
      Set http header status code on this fault.
      Parameters:
      statusCode -
    • setLang

      public void setLang(String convertedLang)
    • getLang

      public String getLang()