public class PrivateKeyAPIError extends APIError
PrivateKeyAPIError class is the class for errors which can be
occurred on Virgil Private Kety services call.| Constructor and Description |
|---|
PrivateKeyAPIError(int statusCode,
String errorBody)
Create a new instance of
PrivateKeyAPIError. |
PrivateKeyAPIError(Throwable throwable)
Create a new instance of
PrivateKeyAPIError. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getErrorPrefix()
Returns the prefix of error message which stored in
Messages.properties. |
getErrorCode, getMessage, getStatusCode, getThrowable, setErrorCode, setStatusCode, setThrowable, toStringpublic PrivateKeyAPIError(int statusCode,
String errorBody)
PrivateKeyAPIError.statusCode - the status code of response from Virgil service.errorBody - the body of response from Virgil service. Virgil service
provides detailed description of error as JSON.public PrivateKeyAPIError(Throwable throwable)
PrivateKeyAPIError.throwable - the cause of an error.protected String getErrorPrefix()
APIErrorMessages.properties.getErrorPrefix in class APIErrorCopyright © 2016. All rights reserved.