Class PhoneNumberError
java.lang.Object
com.azure.communication.phonenumbers.models.PhoneNumberError
The Phone Number Services error.
-
Constructor Summary
ConstructorDescriptionPhoneNumberError
(String message, String code, String target, List<PhoneNumberError> details) Constructs a new PhoneNumberError -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code property: The error code.Get the details property: Further details about specific errors that led to this error.Get the message property: The error message.Get the target property: The error target.
-
Constructor Details
-
PhoneNumberError
Constructs a new PhoneNumberError- Parameters:
message
- The message of the original errorcode
- The error codetarget
- The target of the errordetails
- Additional details
-
-
Method Details
-
getCode
Get the code property: The error code.- Returns:
- the code value.
-
getMessage
Get the message property: The error message.- Returns:
- the message value.
-
getTarget
Get the target property: The error target.- Returns:
- the target value.
-
getDetails
Get the details property: Further details about specific errors that led to this error.- Returns:
- the details value.
-