Package com.mendix.integration
Class WebserviceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.mendix.integration.WebserviceException
- All Implemented Interfaces:
Serializable
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 Summary
-
Constructor Summary
ConstructorDescriptionWebserviceException
(String faultCode, String faultString) Creates a new WebserviceException.WebserviceException
(String faultCode, String faultString, Throwable cause) Creates a new WebserviceException. -
Method Summary
Modifier and TypeMethodDescriptionGets the detail.Gets the fault actor.final String
Gets the fault code.final String
Gets the fault string.void
Sets the detail.void
setFaultActor
(String faultActor) Sets the fault actor.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
clientFaultCode
- See Also:
-
serverFaultCode
- See Also:
-
-
Constructor Details
-
WebserviceException
Creates a new WebserviceException.- Parameters:
faultCode
- the fault codefaultString
- the fault string
-
WebserviceException
Creates a new WebserviceException.- Parameters:
faultCode
- the fault codefaultString
- the fault stringcause
- the cause
-
-
Method Details
-
getFaultCode
Gets the fault code.- Returns:
- the faultCode
-
getFaultString
Gets the fault string.- Returns:
- the faultString
-
getFaultActor
Gets the fault actor.- Returns:
- the fault actor
-
setFaultActor
Sets the fault actor.- Parameters:
faultActor
- the fault actor to set
-
getDetail
Gets the detail.- Returns:
- the detail
-
setDetail
Sets the detail.- Parameters:
detail
- the detail to set
-