public class PlatformException extends Exception
Modifier and Type | Class and Description |
---|---|
static interface |
PlatformException.CODE
Hierarchy of error codes according to each resource in the REST
framework.
|
Constructor and Description |
---|
PlatformException(int code,
String message) |
PlatformException(String message) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the error code
|
javax.ws.rs.core.Response.Status |
getHttpStatus() |
String |
getMessage()
Gets the localized error message
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public PlatformException(int code, String message)
public PlatformException(String message)
public int getCode()
public javax.ws.rs.core.Response.Status getHttpStatus()
public String getMessage()
getMessage
in class Throwable
Throwable.getMessage()