Class RelayError


  • public final class RelayError
    extends Object
    The Phone Number Services error.
    • Constructor Detail

      • RelayError

        public RelayError​(String message,
                          String code,
                          String target,
                          List<RelayError> details)
        Constructs a new RelayError
        Parameters:
        message - The message of the original error
        code - The error code
        target - The target of the error
        details - 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<RelayError> getDetails()
        Get the details property: Further details about specific errors that led to this error.
        Returns:
        the details value.