public class RESTException
extends javax.ws.rs.WebApplicationException
Constructor and Description |
---|
RESTException()
Creates a new RESTException for the given issue.
|
RESTException(ErrorCollection errors)
Creates a new RESTException for the given issue, with a collection of errors.
|
RESTException(javax.ws.rs.core.Response.Status status,
ErrorCollection errors)
Creates a new RESTException for the given issue, with a collection of errors.
|
RESTException(javax.ws.rs.core.Response.Status status,
String... errorMessages) |
RESTException(javax.ws.rs.core.Response.Status status,
Throwable cause)
Creates a new RESTException for the given issue and allows to nest an exception.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public RESTException()
RESTException(javax.ws.rs.core.Response.Status, com.atlassian.jira.rest.api.util.ErrorCollection)
constructor, passing a collection of
errors and the statuspublic RESTException(ErrorCollection errors)
errors
- an ErrorCollection containing the errorspublic RESTException(javax.ws.rs.core.Response.Status status, String... errorMessages)
public RESTException(javax.ws.rs.core.Response.Status status, ErrorCollection errors)
status
- the HTTP status of this error (401, 403, etc)errors
- an ErrorCollection containing the errorspublic RESTException(javax.ws.rs.core.Response.Status status, Throwable cause)
status
- the HTTP status of this error (401, 403, etc)cause
- the nested exception that will be logged by the ExceptionInterceptor, before returning the response to the user.Copyright © 2002-2015 Atlassian. All Rights Reserved.