public class Failure extends RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected int |
errorCode |
protected boolean |
loggable |
protected Response |
response |
| Constructor and Description |
|---|
Failure(int errorCode) |
Failure(String s) |
Failure(String s,
int errorCode) |
Failure(String s,
Response response) |
Failure(String s,
Response response,
int errorCode) |
Failure(String s,
Throwable throwable) |
Failure(String s,
Throwable throwable,
int errorCode) |
Failure(String s,
Throwable throwable,
Response response) |
Failure(Throwable throwable) |
Failure(Throwable throwable,
int errorCode) |
Failure(Throwable throwable,
Response response) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode() |
Response |
getResponse() |
boolean |
isLoggable() |
void |
setErrorCode(int errorCode) |
void |
setLoggable(boolean loggable) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected int errorCode
protected boolean loggable
protected 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 Response getResponse()
Copyright © 2018 JBoss by Red Hat. All rights reserved.