You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**phoneNumber**|**String**| Toll-free telephone number in E.164 format. |[optional]|
12
12
|**errorCode**|**String**| An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered. |[optional]|
13
-
|**errorDescription**|**String**| A description of the error that was encountered. |[optional]|
13
+
|**errorMessage**|**String**| A description of the error that was encountered. |[optional]|
14
14
|**errors**|**List<String>**| Details of the errors that were encountered when processing the request. |[optional]|
15
15
|**internalTicketNumber**|**UUID**| Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. |[optional]|
if ((jsonObj.get("errorCode") != null && !jsonObj.get("errorCode").isJsonNull()) && !jsonObj.get("errorCode").isJsonPrimitive()) {
343
343
thrownewIllegalArgumentException(String.format("Expected the field `errorCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorCode").toString()));
344
344
}
345
-
if ((jsonObj.get("errorDescription") != null && !jsonObj.get("errorDescription").isJsonNull()) && !jsonObj.get("errorDescription").isJsonPrimitive()) {
346
-
thrownewIllegalArgumentException(String.format("Expected the field `errorDescription` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorDescription").toString()));
345
+
if ((jsonObj.get("errorMessage") != null && !jsonObj.get("errorMessage").isJsonNull()) && !jsonObj.get("errorMessage").isJsonPrimitive()) {
346
+
thrownewIllegalArgumentException(String.format("Expected the field `errorMessage` to be a primitive type in the JSON string but got `%s`", jsonObj.get("errorMessage").toString()));
347
347
}
348
348
// ensure the optional json data is an array if present
349
349
if (jsonObj.get("errors") != null && !jsonObj.get("errors").isJsonNull() && !jsonObj.get("errors").isJsonArray()) {
0 commit comments