Class WebserviceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.mendix.integration.WebserviceException
All Implemented Interfaces:
Serializable

public class WebserviceException extends Exception
An exception that can be thrown by webservices published by the Mendix application and webservice calls by the Mendix application. This exception can be thrown in custom java actions handling a published webservice call to show a custom soap fault. In the constructor, use the public field clientFaultCode or serverFaultCode to indicate a client or server error.
See Also:
  • Field Details

  • Constructor Details

    • WebserviceException

      public WebserviceException(String faultCode, String faultString)
      Creates a new WebserviceException.
      Parameters:
      faultCode - the fault code
      faultString - the fault string
    • WebserviceException

      public WebserviceException(String faultCode, String faultString, Throwable cause)
      Creates a new WebserviceException.
      Parameters:
      faultCode - the fault code
      faultString - the fault string
      cause - the cause
  • Method Details

    • getFaultCode

      public final String getFaultCode()
      Gets the fault code.
      Returns:
      the faultCode
    • getFaultString

      public final String getFaultString()
      Gets the fault string.
      Returns:
      the faultString
    • getFaultActor

      public String getFaultActor()
      Gets the fault actor.
      Returns:
      the fault actor
    • setFaultActor

      public void setFaultActor(String faultActor)
      Sets the fault actor.
      Parameters:
      faultActor - the fault actor to set
    • getDetail

      public String getDetail()
      Gets the detail.
      Returns:
      the detail
    • setDetail

      public void setDetail(String detail)
      Sets the detail.
      Parameters:
      detail - the detail to set