

# OntapError

An error returned by ONTAP for an operation on an Amazon FSx for NetApp ONTAP resource.

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

 ** Code **   <a name="FSx-Type-OntapError-Code"></a>
The error code returned by ONTAP.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Required: No

 ** Message **   <a name="FSx-Type-OntapError-Message"></a>
The error message returned by ONTAP.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: No

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/fsx-2018-03-01/OntapError) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/fsx-2018-03-01/OntapError) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/fsx-2018-03-01/OntapError) 