Class ErrorsListItem
- java.lang.Object
-
- software.amazon.awssdk.services.comprehend.model.ErrorsListItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ErrorsListItem.Builder,ErrorsListItem>
@Generated("software.amazon.awssdk:codegen") public final class ErrorsListItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ErrorsListItem.Builder,ErrorsListItem>
Text extraction encountered one or more page-level errors in the input document.
The
ErrorCodecontains one of the following values:-
TEXTRACT_BAD_PAGE - Amazon Textract cannot read the page. For more information about page limits in Amazon Textract, see Page Quotas in Amazon Textract.
-
TEXTRACT_PROVISIONED_THROUGHPUT_EXCEEDED - The number of requests exceeded your throughput limit. For more information about throughput quotas in Amazon Textract, see Default quotas in Amazon Textract.
-
PAGE_CHARACTERS_EXCEEDED - Too many text characters on the page (10,000 characters maximum).
-
PAGE_SIZE_EXCEEDED - The maximum page size is 10 MB.
-
INTERNAL_SERVER_ERROR - The request encountered a service issue. Try the API request again.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceErrorsListItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorsListItem.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)PageBasedErrorCodeerrorCode()Error code for the cause of the error.StringerrorCodeAsString()Error code for the cause of the error.StringerrorMessage()Text message explaining the reason for the error.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Integerpage()Page number where the error occurred.List<SdkField<?>>sdkFields()static Class<? extends ErrorsListItem.Builder>serializableBuilderClass()ErrorsListItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
page
public final Integer page()
Page number where the error occurred.
- Returns:
- Page number where the error occurred.
-
errorCode
public final PageBasedErrorCode errorCode()
Error code for the cause of the error.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnPageBasedErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- Error code for the cause of the error.
- See Also:
PageBasedErrorCode
-
errorCodeAsString
public final String errorCodeAsString()
Error code for the cause of the error.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnPageBasedErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- Error code for the cause of the error.
- See Also:
PageBasedErrorCode
-
errorMessage
public final String errorMessage()
Text message explaining the reason for the error.
- Returns:
- Text message explaining the reason for the error.
-
toBuilder
public ErrorsListItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ErrorsListItem.Builder,ErrorsListItem>
-
builder
public static ErrorsListItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends ErrorsListItem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-