Class TextAnalyticsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.ai.textanalytics.models.TextAnalyticsException
- All Implemented Interfaces:
Serializable
public class TextAnalyticsException
extends com.azure.core.exception.AzureException
General exception for Text Analytics related failures.
- See Also:
-
Constructor Summary
ConstructorDescriptionTextAnalyticsException
(String message, TextAnalyticsErrorCode errorCode, String target) Initializes a new instance of theTextAnalyticsException
class. -
Method Summary
Modifier and TypeMethodDescriptionGets theTextAnalyticsErrorCode
for this exception.com.azure.core.util.IterableStream<TextAnalyticsError>
Get the error information list fot this exception.Gets the target for this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TextAnalyticsException
Initializes a new instance of theTextAnalyticsException
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
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getTarget
Gets the target for this exception.- Returns:
- The target for this exception.
-
getErrorCode
Gets theTextAnalyticsErrorCode
for this exception.- Returns:
- The
TextAnalyticsErrorCode
for this exception.
-
getErrors
Get the error information list fot this exception.- Returns:
IterableStream
ofTextAnalyticsError
.
-