Package com.vonage.client.verify2
Class VerifyResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.vonage.client.VonageClientException
com.vonage.client.VonageApiResponseException
com.vonage.client.verify2.VerifyResponseException
- All Implemented Interfaces:
Jsonable,Serializable
Response returned when verification fails (i.e. returns a non-2xx status code).
- See Also:
-
Field Summary
Fields inherited from class com.vonage.client.VonageApiResponseException
code, detail, errorCode, errorCodeLabel, errors, instance, invalidParameters, statusCode, title, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VerifyResponseExceptionCreates an instance of this class from a JSON payload.The request ID, if the status code is 409 for a failed outbound request.Methods inherited from class com.vonage.client.VonageApiResponseException
equals, fromJson, getCode, getDetail, getErrorCodeLabel, getErrors, getInstance, getInvalidParameters, getMessage, getStatusCode, getTitle, getType, hashCode, toJsonMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
updateFromJson
-
Constructor Details
-
VerifyResponseException
public VerifyResponseException()
-
-
Method Details
-
getRequestId
The request ID, if the status code is 409 for a failed outbound request.- Returns:
- The request ID, or
nullif not applicable / available.
-
fromJson
Creates an instance of this class from a JSON payload.- Parameters:
json- The JSON string to parse.- Returns:
- An instance of this class with all known fields populated from the JSON payload, if present.
-