TextAnalyticsException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. ai. textanalytics. models. TextAnalyticsException
- com.
- com.
- java.
- java.
- java.
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 |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Text |
getErrorCode()
Gets the TextAnalyticsErrorCode for this exception. |
|
Iterable |
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:
Method Details
getErrorCode
public TextAnalyticsErrorCode getErrorCode()
Gets the TextAnalyticsErrorCode for this exception.
Returns:
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: