

# ErrorInfo


This is an error field object that contains the error code and the reason for an operation failure.

## Contents


 ** Code **   <a name="sagemaker-Type-ErrorInfo-Code"></a>
The error code for an invalid or failed operation.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 64.  
Pattern: `(?!\s*$).+`   
Required: No

 ** Reason **   <a name="sagemaker-Type-ErrorInfo-Reason"></a>
The failure reason for the operation.  
Type: String  
Length Constraints: Minimum length of 0. Maximum length of 256.  
Pattern: `(?!\s*$).+`   
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sagemaker-2017-07-24/ErrorInfo) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sagemaker-2017-07-24/ErrorInfo) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sagemaker-2017-07-24/ErrorInfo) 