public class TextAnalyticsException
extends com.azure.core.exception.AzureException
Constructor and Description |
---|
TextAnalyticsException(String message,
TextAnalyticsErrorCode errorCode,
String target)
Initializes a new instance of the
TextAnalyticsException class. |
Modifier and Type | Method and Description |
---|---|
TextAnalyticsErrorCode |
getErrorCode()
Gets the
TextAnalyticsErrorCode for this exception. |
com.azure.core.util.IterableStream<TextAnalyticsError> |
getErrors()
Get the error information list fot this exception.
|
String |
getMessage() |
String |
getTarget()
Gets the target for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TextAnalyticsException(String message, TextAnalyticsErrorCode errorCode, String target)
TextAnalyticsException
class.message
- Text contains any additional details of the exception.errorCode
- The service returned error code value.target
- The target for this exception.public String getMessage()
getMessage
in class Throwable
public String getTarget()
public TextAnalyticsErrorCode getErrorCode()
TextAnalyticsErrorCode
for this exception.TextAnalyticsErrorCode
for this exception.public com.azure.core.util.IterableStream<TextAnalyticsError> getErrors()
IterableStream
of TextAnalyticsError
.Copyright © 2021 Microsoft Corporation. All rights reserved.