public class WebExceptionDTO extends Object
Constructor and Description |
---|
WebExceptionDTO() |
WebExceptionDTO(javax.ws.rs.core.Response.Status status,
String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
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) |
public String getMessage()
public String getCause()
public String getStacktrace()
public javax.ws.rs.core.Response.Status getStatus()
public static WebExceptionDTO wrap(WebException exception)
public static WebExceptionDTO wrap(Exception exception, javax.ws.rs.core.Response.Status status)
Copyright © 2015. All rights reserved.