public class JaxbExceptionResponse extends AbstractJaxbCommandResponse<String>
Modifier and Type | Field and Description |
---|---|
Exception |
cause |
commandName
status, 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, setIndex
getStatus, getUrl, setStatus, setUrl
public 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 AbstractJaxbResponse
JAXBException
public String getResult()
public void setResult(String result)
JaxbCommandResponse
public 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–2018 JBoss by Red Hat. All rights reserved.