KIE Remote Services :: JAXB classes 6.1.0.Final

org.kie.services.client.serialization.jaxb.rest
Class JaxbExceptionResponse

java.lang.Object
  extended by org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
      extended by org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse<String>
          extended by org.kie.services.client.serialization.jaxb.rest.JaxbExceptionResponse
All Implemented Interfaces:
JaxbCommandResponse<String>

public class JaxbExceptionResponse
extends AbstractJaxbCommandResponse<String>


Field Summary
 Exception cause
           
 
Fields inherited from class org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse
commandName
 
Fields inherited from class org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
status, url
 
Constructor Summary
JaxbExceptionResponse()
           
JaxbExceptionResponse(Exception e, int i, org.kie.api.command.Command<?> cmd, JaxbRequestStatus status)
           
JaxbExceptionResponse(String requestUrl, Exception e, JaxbRequestStatus status)
           
 
Method Summary
static String convertStackTraceToString(Throwable t)
           
 Exception getCause()
           
 String getMessage()
           
 String getResult()
           
 String getStackTrace()
           
 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)
           
 
Methods inherited from class org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse
getCommandName, getIndex, setCommandName, setIndex
 
Methods inherited from class org.kie.services.client.serialization.jaxb.rest.AbstractJaxbResponse
getStatus, getUrl, prettyPrint, setStatus, setUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cause

public Exception cause
Constructor Detail

JaxbExceptionResponse

public JaxbExceptionResponse()

JaxbExceptionResponse

public JaxbExceptionResponse(Exception e,
                             int i,
                             org.kie.api.command.Command<?> cmd,
                             JaxbRequestStatus status)

JaxbExceptionResponse

public JaxbExceptionResponse(String requestUrl,
                             Exception e,
                             JaxbRequestStatus status)
Method Detail

convertStackTraceToString

public static String convertStackTraceToString(Throwable t)

getResult

public String getResult()
Returns:
The result object generated by the command. If the command does not return an object, null.

setResult

public void setResult(String result)
Description copied from interface: JaxbCommandResponse
This method is necessary for the YAML framework (which expects getters *and* setters) to work with these objects.


getMessage

public String getMessage()

setMessage

public void setMessage(String message)

getCause

public Exception getCause()

setCause

public void setCause(Exception cause)

getStackTrace

public String getStackTrace()

setStackTrace

public void setStackTrace(String stackTrace)

KIE Remote Services :: JAXB classes 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.