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 SummaryFieldsModifier and TypeFieldDescriptionstatic final QNamestatic final QNamestatic final Stringstatic final StringFields inherited from class org.apache.cxf.common.i18n.UncheckedExceptionmessage
- 
Constructor SummaryConstructorsConstructorDescriptionFault(String message, ResourceBundle b) Fault(String message, ResourceBundle b, Throwable t) Fault(String message, ResourceBundle b, Throwable t, Object... params) 
- 
Method SummaryModifier 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.UncheckedExceptiongetCodeMethods inherited from class java.lang.ThrowableaddSuppressed, 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 class- UncheckedException
 
- 
setMessage
- 
getFaultCode
- 
setFaultCode
- 
getDetailReturns the detail node.- Returns:
- the detail node.
 
- 
setDetailSets a detailsNodeon this fault.- Parameters:
- details- the detail node.
 
- 
hasDetailspublic boolean hasDetails()Indicates whether this fault has a detail message.- Returns:
- trueif this fault has a detail message;- falseotherwise.
 
- 
getOrCreateDetailReturns the detail node. If no detail node has been set, an empty<detail>is created.- Returns:
- the detail node.
 
- 
getStatusCodepublic int getStatusCode()Returns http header status code.- Returns:
- status code.
 
- 
setStatusCodepublic void setStatusCode(int statusCode) Set http header status code on this fault.- Parameters:
- statusCode-
 
- 
setLang
- 
getLang
 
-