org.camunda.bpm.cycle.web.dto
Class WebExceptionDTO

java.lang.Object
  extended by org.camunda.bpm.cycle.web.dto.WebExceptionDTO

public class WebExceptionDTO
extends Object

Data object for exceptions being raised by an application

Author:
nico.rehwaldt

Constructor Summary
WebExceptionDTO()
           
WebExceptionDTO(javax.ws.rs.core.Response.Status status, String message, Throwable cause)
           
 
Method Summary
 String getCause()
           
 String getMessage()
           
 String getStacktrace()
           
 javax.ws.rs.core.Response.Status getStatus()
           
static WebExceptionDTO wrap(Exception exception, javax.ws.rs.core.Response.Status status)
           
static WebExceptionDTO wrap(WebException exception)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebExceptionDTO

public WebExceptionDTO()

WebExceptionDTO

public WebExceptionDTO(javax.ws.rs.core.Response.Status status,
                       String message,
                       Throwable cause)
Method Detail

getMessage

public String getMessage()

getCause

public String getCause()

getStacktrace

public String getStacktrace()

getStatus

public javax.ws.rs.core.Response.Status getStatus()

wrap

public static WebExceptionDTO wrap(WebException exception)

wrap

public static WebExceptionDTO wrap(Exception exception,
                                   javax.ws.rs.core.Response.Status status)


Copyright © 2014 camunda services GmbH. All rights reserved.