public class Failure extends RuntimeException
Modifier and Type | Field and Description |
---|---|
protected int |
errorCode |
protected boolean |
loggable |
protected javax.ws.rs.core.Response |
response |
Constructor and Description |
---|
Failure(int errorCode) |
Failure(String s) |
Failure(String s,
int errorCode) |
Failure(String s,
javax.ws.rs.core.Response response) |
Failure(String s,
Throwable throwable) |
Failure(String s,
Throwable throwable,
int errorCode) |
Failure(String s,
Throwable throwable,
javax.ws.rs.core.Response response) |
Failure(Throwable throwable) |
Failure(Throwable throwable,
int errorCode) |
Failure(Throwable throwable,
javax.ws.rs.core.Response response) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
javax.ws.rs.core.Response |
getResponse() |
boolean |
isLoggable() |
void |
setErrorCode(int errorCode) |
void |
setLoggable(boolean loggable) |
void |
setResponse(javax.ws.rs.core.Response response) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected int errorCode
protected boolean loggable
protected javax.ws.rs.core.Response response
public Failure(String s, javax.ws.rs.core.Response response)
public Failure(Throwable throwable, javax.ws.rs.core.Response response)
public Failure(Throwable throwable)
public Failure(String s)
public Failure(int errorCode)
public Failure(String s, int errorCode)
public Failure(Throwable throwable, int errorCode)
public int getErrorCode()
public void setErrorCode(int errorCode)
public boolean isLoggable()
public void setLoggable(boolean loggable)
public javax.ws.rs.core.Response getResponse()
public void setResponse(javax.ws.rs.core.Response response)
Copyright © 2015 JBoss by Red Hat. All rights reserved.