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
FieldsModifier and TypeFieldDescriptionstatic final QNamestatic final QNamestatic final Stringstatic final StringFields inherited from class org.apache.cxf.common.i18n.UncheckedException
message -
Constructor Summary
ConstructorsConstructorDescriptionFault(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.intReturns http header status code.booleanIndicates whether this fault has a detail message.voidSets a detailsNodeon this fault.voidvoidsetMessage(String message) voidsetStatusCode(int statusCode) Set http header status code on this fault.Methods inherited from class org.apache.cxf.common.i18n.UncheckedException
getCodeMethods 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:
getMessagein classUncheckedException
-
setMessage
-
getFaultCode
-
setFaultCode
-
getDetail
Returns the detail node.- Returns:
- the detail node.
-
setDetail
Sets a detailsNodeon this fault.- Parameters:
details- the detail node.
-
hasDetails
public boolean hasDetails()Indicates whether this fault has a detail message.- Returns:
trueif this fault has a detail message;falseotherwise.
-
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
-