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