public class Fault extends UncheckedException
Modifier and Type | Field and Description |
---|---|
static QName |
FAULT_CODE_CLIENT |
static QName |
FAULT_CODE_SERVER |
static String |
STACKTRACE |
static String |
STACKTRACE_NAMESPACE |
message
Constructor and Description |
---|
Fault(Message message) |
Fault(Message message,
QName fc) |
Fault(Message message,
Throwable throwable) |
Fault(Message message,
Throwable throwable,
QName fc) |
Fault(String message,
Logger log) |
Fault(String message,
Logger log,
Throwable t) |
Fault(String message,
Logger log,
Throwable t,
Object... params) |
Fault(String message,
ResourceBundle b) |
Fault(String message,
ResourceBundle b,
Throwable t) |
Fault(String message,
ResourceBundle b,
Throwable t,
Object... params) |
Fault(Throwable t) |
Fault(Throwable t,
QName fc) |
Modifier and Type | Method and Description |
---|---|
Element |
getDetail()
Returns the detail node.
|
QName |
getFaultCode() |
String |
getLang() |
String |
getMessage() |
Element |
getOrCreateDetail()
Returns the detail node.
|
int |
getStatusCode()
Returns http header status code.
|
boolean |
hasDetails()
Indicates whether this fault has a detail message.
|
void |
setDetail(Element details)
Sets a details
Node on this fault. |
Fault |
setFaultCode(QName c) |
void |
setLang(String convertedLang) |
void |
setMessage(String message) |
void |
setStatusCode(int statusCode)
Set http header status code on this fault.
|
getCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final QName FAULT_CODE_CLIENT
public static final QName FAULT_CODE_SERVER
public static final String STACKTRACE_NAMESPACE
public static final String STACKTRACE
public Fault(Message message)
public Fault(String message, ResourceBundle b)
public Fault(String message, ResourceBundle b, Throwable t)
public Fault(String message, ResourceBundle b, Throwable t, Object... params)
public Fault(Throwable t)
public String getMessage()
getMessage
in class UncheckedException
public void setMessage(String message)
public QName getFaultCode()
public Element getDetail()
public void setDetail(Element details)
Node
on this fault.details
- the detail node.public boolean hasDetails()
true
if this fault has a detail message;
false
otherwise.public Element getOrCreateDetail()
<detail>
is created.public int getStatusCode()
public void setStatusCode(int statusCode)
statusCode
- public void setLang(String convertedLang)
public String getLang()
Copyright © 2017 JBoss by Red Hat. All rights reserved.