public class GenericError extends RuntimeException
| Constructor and Description |
|---|
GenericError()
Empty constructor for Jackson
|
GenericError(int responseCode,
String message,
Throwable cause)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
The cause of the exception
|
String |
getMessage() |
int |
getResponseCode() |
void |
setCause(Throwable cause) |
void |
setMessage(String message) |
void |
setResponseCode(int responseCode) |
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic int getResponseCode()
public void setMessage(String message)
message - error messagepublic String getMessage()
getMessage in class Throwablepublic void setResponseCode(int responseCode)
responseCode - set a response codepublic void setCause(Throwable cause)
cause - the exception cause cause of the exceptionCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.