public class JaxbExceptionResponse extends AbstractJaxbCommandResponse<String>
| Modifier and Type | Field and Description |
|---|---|
Exception |
cause |
commandNamestatus, url| Constructor and Description |
|---|
JaxbExceptionResponse() |
JaxbExceptionResponse(Exception e,
int i,
org.kie.api.command.Command<?> cmd,
JaxbRequestStatus status) |
JaxbExceptionResponse(String requestUrl,
Exception e,
JaxbRequestStatus status) |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertStackTraceToString(Throwable t) |
Exception |
getCause() |
String |
getMessage() |
String |
getResult() |
String |
getStackTrace() |
String |
prettyPrint() |
void |
setCause(Exception cause) |
void |
setMessage(String message) |
void |
setResult(String result)
This method is necessary for the YAML framework (which expects getters *and* setters) to work with these objects.
|
void |
setStackTrace(String stackTrace) |
getCommandName, getIndex, setCommandName, setIndexgetStatus, getUrl, setStatus, setUrlpublic Exception cause
public JaxbExceptionResponse()
public JaxbExceptionResponse(Exception e, int i, org.kie.api.command.Command<?> cmd, JaxbRequestStatus status)
public JaxbExceptionResponse(String requestUrl, Exception e, JaxbRequestStatus status)
public String prettyPrint() throws JAXBException
prettyPrint in class AbstractJaxbResponseJAXBExceptionpublic String getResult()
public void setResult(String result)
JaxbCommandResponsepublic String getMessage()
public void setMessage(String message)
public Exception getCause()
public void setCause(Exception cause)
public String getStackTrace()
public void setStackTrace(String stackTrace)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.