@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AthenaError extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an Athena query error. The AthenaError
feature provides standardized error
information to help you understand failed queries and take steps after a query failure occurs.
AthenaError
includes an ErrorCategory
field that specifies whether the cause of the failed
query is due to system error, user error, or other error.
Constructor and Description |
---|
AthenaError() |
Modifier and Type | Method and Description |
---|---|
AthenaError |
clone() |
boolean |
equals(Object obj) |
Integer |
getErrorCategory()
An integer value that specifies the category of a query failure error.
|
String |
getErrorMessage()
Contains a short description of the error that occurred.
|
Integer |
getErrorType()
An integer value that provides specific information about an Athena query error.
|
Boolean |
getRetryable()
True if the query might succeed if resubmitted.
|
int |
hashCode() |
Boolean |
isRetryable()
True if the query might succeed if resubmitted.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCategory(Integer errorCategory)
An integer value that specifies the category of a query failure error.
|
void |
setErrorMessage(String errorMessage)
Contains a short description of the error that occurred.
|
void |
setErrorType(Integer errorType)
An integer value that provides specific information about an Athena query error.
|
void |
setRetryable(Boolean retryable)
True if the query might succeed if resubmitted.
|
String |
toString()
Returns a string representation of this object.
|
AthenaError |
withErrorCategory(Integer errorCategory)
An integer value that specifies the category of a query failure error.
|
AthenaError |
withErrorMessage(String errorMessage)
Contains a short description of the error that occurred.
|
AthenaError |
withErrorType(Integer errorType)
An integer value that provides specific information about an Athena query error.
|
AthenaError |
withRetryable(Boolean retryable)
True if the query might succeed if resubmitted.
|
public void setErrorCategory(Integer errorCategory)
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
errorCategory
- An integer value that specifies the category of a query failure error. The following list shows the
category for each integer value.
1 - System
2 - User
3 - Other
public Integer getErrorCategory()
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
1 - System
2 - User
3 - Other
public AthenaError withErrorCategory(Integer errorCategory)
An integer value that specifies the category of a query failure error. The following list shows the category for each integer value.
1 - System
2 - User
3 - Other
errorCategory
- An integer value that specifies the category of a query failure error. The following list shows the
category for each integer value.
1 - System
2 - User
3 - Other
public void setErrorType(Integer errorType)
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
errorType
- An integer value that provides specific information about an Athena query error. For the meaning of
specific values, see the Error Type Reference in the Amazon Athena User Guide.public Integer getErrorType()
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
public AthenaError withErrorType(Integer errorType)
An integer value that provides specific information about an Athena query error. For the meaning of specific values, see the Error Type Reference in the Amazon Athena User Guide.
errorType
- An integer value that provides specific information about an Athena query error. For the meaning of
specific values, see the Error Type Reference in the Amazon Athena User Guide.public void setRetryable(Boolean retryable)
True if the query might succeed if resubmitted.
retryable
- True if the query might succeed if resubmitted.public Boolean getRetryable()
True if the query might succeed if resubmitted.
public AthenaError withRetryable(Boolean retryable)
True if the query might succeed if resubmitted.
retryable
- True if the query might succeed if resubmitted.public Boolean isRetryable()
True if the query might succeed if resubmitted.
public void setErrorMessage(String errorMessage)
Contains a short description of the error that occurred.
errorMessage
- Contains a short description of the error that occurred.public String getErrorMessage()
Contains a short description of the error that occurred.
public AthenaError withErrorMessage(String errorMessage)
Contains a short description of the error that occurred.
errorMessage
- Contains a short description of the error that occurred.public String toString()
toString
in class Object
Object.toString()
public AthenaError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.