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 Link icon

  • Constructor Details Link icon

    • WebserviceException Link icon

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

      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 Link icon

    • getFaultCode Link icon

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

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

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

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

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

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