Class TextAnalyticsError

    • Constructor Detail

      • TextAnalyticsError

        public TextAnalyticsError​(TextAnalyticsErrorCode errorCode,
                                  String message,
                                  String target)
        Creates a TextAnalyticsError model that describes text analytics error.
        Parameters:
        errorCode - The error code.
        message - The error message.
        target - The error target.
    • Method Detail

      • getErrorCode

        public TextAnalyticsErrorCode getErrorCode()
        Get the code property: Error code. Possible values include: 'invalidRequest', 'invalidArgument', 'internalServerError', 'serviceUnavailable'.
        Returns:
        The code value.
      • getMessage

        public String getMessage()
        Get the message property: Error message.
        Returns:
        The message value.
      • getTarget

        public String getTarget()
        Get the target property: Error target.
        Returns:
        The target value.