Share via


TextAnalyticsException Class

public class TextAnalyticsException
extends AzureException

General exception for Text Analytics related failures.

Constructor Summary

Constructor Description
TextAnalyticsException(String message, TextAnalyticsErrorCode errorCode, String target)

Initializes a new instance of the TextAnalyticsException class.

Method Summary

Modifier and Type Method and Description
TextAnalyticsErrorCode getErrorCode()

Gets the TextAnalyticsErrorCode for this exception.

IterableStream<TextAnalyticsError> getErrors()

Get the error information list fot this exception.

String getMessage()
String getTarget()

Gets the target for this exception.

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

TextAnalyticsException

public TextAnalyticsException(String message, TextAnalyticsErrorCode errorCode, String target)

Initializes a new instance of the TextAnalyticsException class.

Parameters:

message - Text contains any additional details of the exception.
errorCode - The service returned error code value.
target - The target for this exception.

Method Details

getErrorCode

public TextAnalyticsErrorCode getErrorCode()

Gets the TextAnalyticsErrorCode for this exception.

Returns:

The TextAnalyticsErrorCode for this exception.

getErrors

public IterableStream<TextAnalyticsError> getErrors()

Get the error information list fot this exception.

Returns:

getMessage

public String getMessage()

Overrides:

TextAnalyticsException.getMessage()

getTarget

public String getTarget()

Gets the target for this exception.

Returns:

The target for this exception.

Applies to