

# Service-specific Errors
<a name="API_Errors"></a>

The Amazon Managed Blockchain Query API contains service-specific exceptions that various actions return. This section describes each exception in detail.

The following service-specific exceptions are returned:
+  [AccessDeniedException](API_AccessDeniedException.md) 
+  [InternalServerException](API_InternalServerException.md) 
+  [ResourceNotFoundException](API_ResourceNotFoundException.md) 
+  [ServiceQuotaExceededException](API_ServiceQuotaExceededException.md) 
+  [ThrottlingException](API_ThrottlingException.md) 
+  [ValidationException](API_ValidationException.md) 

# AccessDeniedException
<a name="API_AccessDeniedException"></a>

The AWS account doesn’t have access to this resource. 

HTTP Status Code returned: 403

## Contents
<a name="API_AccessDeniedException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-AccessDeniedException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

## See Also
<a name="API_AccessDeniedException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/AccessDeniedException) 

# InternalServerException
<a name="API_InternalServerException"></a>

The request processing has failed because of an internal error in the service.

HTTP Status Code returned: 500

## Contents
<a name="API_InternalServerException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-InternalServerException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** Retry-After **   <a name="ManagedBlockchainQueryAPIReference-Type-InternalServerException-retryAfterSeconds"></a>
Specifies the `retryAfterSeconds` value.  
Type: Integer  
Required: No

## See Also
<a name="API_InternalServerException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/InternalServerException) 

# ResourceNotFoundException
<a name="API_ResourceNotFoundException"></a>

The resource was not found.

HTTP Status Code returned: 404

## Contents
<a name="API_ResourceNotFoundException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-ResourceNotFoundException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** resourceId **   <a name="ManagedBlockchainQueryAPIReference-Type-ResourceNotFoundException-resourceId"></a>
The `resourceId` of the resource that caused the exception.  
Type: String  
Required: Yes

 ** resourceType **   <a name="ManagedBlockchainQueryAPIReference-Type-ResourceNotFoundException-resourceType"></a>
The `resourceType` of the resource that caused the exception.  
Type: String  
Valid Values: `collection`   
Required: Yes

## See Also
<a name="API_ResourceNotFoundException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/ResourceNotFoundException) 

# ServiceQuotaExceededException
<a name="API_ServiceQuotaExceededException"></a>

The service quota has been exceeded for this resource.

HTTP Status Code returned: 402

## Contents
<a name="API_ServiceQuotaExceededException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-ServiceQuotaExceededException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** quotaCode **   <a name="ManagedBlockchainQueryAPIReference-Type-ServiceQuotaExceededException-quotaCode"></a>
The container for the `quotaCode`.  
Type: String  
Required: Yes

 ** resourceId **   <a name="ManagedBlockchainQueryAPIReference-Type-ServiceQuotaExceededException-resourceId"></a>
The `resourceId` of the resource that caused the exception.  
Type: String  
Required: Yes

 ** resourceType **   <a name="ManagedBlockchainQueryAPIReference-Type-ServiceQuotaExceededException-resourceType"></a>
The `resourceType` of the resource that caused the exception.  
Type: String  
Valid Values: `collection`   
Required: Yes

 ** serviceCode **   <a name="ManagedBlockchainQueryAPIReference-Type-ServiceQuotaExceededException-serviceCode"></a>
The container for the `serviceCode`.  
Type: String  
Required: Yes

## See Also
<a name="API_ServiceQuotaExceededException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/ServiceQuotaExceededException) 

# ThrottlingException
<a name="API_ThrottlingException"></a>

The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is when you create resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources, if possible.

HTTP Status Code returned: 429

## Contents
<a name="API_ThrottlingException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-ThrottlingException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** quotaCode **   <a name="ManagedBlockchainQueryAPIReference-Type-ThrottlingException-quotaCode"></a>
The container for the `quotaCode`.  
Type: String  
Required: Yes

 ** serviceCode **   <a name="ManagedBlockchainQueryAPIReference-Type-ThrottlingException-serviceCode"></a>
The container for the `serviceCode`.  
Type: String  
Required: Yes

 ** Retry-After **   <a name="ManagedBlockchainQueryAPIReference-Type-ThrottlingException-retryAfterSeconds"></a>
The container of the `retryAfterSeconds` value.  
Type: Integer  
Required: No

## See Also
<a name="API_ThrottlingException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/ThrottlingException) 

# ValidationException
<a name="API_ValidationException"></a>

The resource passed is invalid.

HTTP Status Code returned: 400

## Contents
<a name="API_ValidationException_Contents"></a>

 ** message **   <a name="ManagedBlockchainQueryAPIReference-Type-ValidationException-message"></a>
The container for the exception message.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: Yes

 ** reason **   <a name="ManagedBlockchainQueryAPIReference-Type-ValidationException-reason"></a>
The container for the reason for the exception  
Type: String  
Valid Values: `unknownOperation | cannotParse | fieldValidationFailed | other`   
Required: Yes

 ** fieldList **   <a name="ManagedBlockchainQueryAPIReference-Type-ValidationException-fieldList"></a>
The container for the `fieldList` of the exception.  
Type: Array of [ValidationExceptionField](API_ValidationExceptionField.md) objects  
Required: No

## See Also
<a name="API_ValidationException_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/managedblockchain-query-2023-05-04/ValidationException) 