Package org.apache.cxf.interceptor
Class Fault
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cxf.common.i18n.UncheckedException
org.apache.cxf.interceptor.Fault
- All Implemented Interfaces:
Serializable
A Fault that occurs during invocation processing.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QName
static final QName
static final String
static final String
Fields inherited from class org.apache.cxf.common.i18n.UncheckedException
message
-
Constructor Summary
ConstructorDescriptionFault
(String message, ResourceBundle b) Fault
(String message, ResourceBundle b, Throwable t) Fault
(String message, ResourceBundle b, Throwable t, Object... params) -
Method Summary
Modifier and TypeMethodDescriptionReturns the detail node.getLang()
Returns the detail node.int
Returns http header status code.boolean
Indicates whether this fault has a detail message.void
Sets a detailsNode
on this fault.void
void
setMessage
(String message) void
setStatusCode
(int statusCode) Set http header status code on this fault.Methods inherited from class org.apache.cxf.common.i18n.UncheckedException
getCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
FAULT_CODE_CLIENT
-
FAULT_CODE_SERVER
-
STACKTRACE_NAMESPACE
- See Also:
-
STACKTRACE
- See Also:
-
-
Constructor Details
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
Fault
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classUncheckedException
-
setMessage
-
getFaultCode
-
setFaultCode
-
getDetail
Returns the detail node.- Returns:
- the detail node.
-
setDetail
Sets a detailsNode
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
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
-
getLang
-