public class NeverbounceApiException extends RuntimeException implements Response
| Constructor and Description |
|---|
NeverbounceApiException()
Creates a new
NeverbounceApiException. |
NeverbounceApiException(Response response)
Creates a new
NeverbounceApiException based on the given response. |
| Modifier and Type | Method and Description |
|---|---|
long |
getExecutionTime()
Returned execution time in milliseconds.
|
String |
getMessage()
Status message if applicable (eg.
|
Status |
getStatus()
Status of the returned request.
|
void |
setExecutionTime(long executionTime)
Sets execution time.
|
void |
setMessage(String message)
Sets error message.
|
void |
setStatus(Status status)
Sets
Status. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NeverbounceApiException()
NeverbounceApiException.public NeverbounceApiException(Response response)
NeverbounceApiException based on the given response.response - Responsepublic long getExecutionTime()
ResponsegetExecutionTime in interface Responsepublic void setExecutionTime(long executionTime)
executionTime - Execution timepublic Status getStatus()
Responsepublic String getMessage()
ResponsegetMessage in interface ResponsegetMessage in class Throwablepublic void setMessage(String message)
message - MessageCopyright © 2017 Metrics Delivered LLC.. All rights reserved.