public class ForbiddenJsonException extends JsonDetailedException
User: Kirill, Date: 21.09.13 12:03
Modifier and Type | Field and Description |
---|---|
private ForbiddenErrorType |
code |
Constructor and Description |
---|
ForbiddenJsonException() |
ForbiddenJsonException(ForbiddenErrorType code) |
ForbiddenJsonException(ForbiddenErrorType code,
String message) |
Modifier and Type | Method and Description |
---|---|
JsonDetailedException |
deserialize(String jsonSource)
Performs deserialization.
|
ForbiddenErrorType |
getCode() |
String |
getMessage() |
String |
serialize()
Performs serialization.
|
getDetails, setDetails, toString
getExceptionName, getResponseCode, setResponseCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
private ForbiddenErrorType code
public ForbiddenJsonException()
public ForbiddenJsonException(ForbiddenErrorType code)
public ForbiddenJsonException(ForbiddenErrorType code, String message)
public ForbiddenErrorType getCode()
public String serialize()
JsonSerializable
JsonSerializable.serialize()
.serialize
in interface JsonSerializable
serialize
in class JsonDetailedException
String
with exception data.public JsonDetailedException deserialize(String jsonSource)
JsonDeserializable
JsonSerializable.serialize()
.deserialize
in interface JsonDeserializable
deserialize
in class JsonDetailedException
jsonSource
- json-encoded String
with exception data.JsonException
public String getMessage()
getMessage
in class JsonDetailedException
Copyright © 2016. All rights reserved.