twilio-java icon indicating copy to clipboard operation
twilio-java copied to clipboard

chore: Add Twilio API v1.0 standards Error model

Open manisha1997 opened this issue 2 months ago • 1 comments

Feature: Add Error Response

TwilioServiceErrorResponse: description: The error response from a Twilio service. type: object required: - code - httpStatusCode - message - userError properties: code: description: The error code returned by the Twilio service. type: integer nullable: false message: description: A human-readable message describing the error. type: string nullable: false userError: description: Indicates whether the error is a user error (true) or a system error (false). type: boolean nullable: false httpStatusCode: description: The HTTP status code associated with the error. type: integer nullable: false params: description: Additional parameters related to the error. type: object additionalProperties: type: string nullable: false

APIException class is the same. The type of error will be decided on class level and appropriately an APIException object will be created.

manisha1997 avatar Nov 04 '25 08:11 manisha1997

Quality Gate Failed Quality Gate failed

Failed conditions
62.9% Coverage on New Code (required ≥ 80%)
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

sonarqubecloud[bot] avatar Nov 05 '25 12:11 sonarqubecloud[bot]