

# PhaseContext
<a name="API_PhaseContext"></a>

Additional information about a build phase that has an error. You can use this information for troubleshooting.

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

**Note**  
In the following list, the required parameters are described first.

 ** message **   <a name="CodeBuild-Type-PhaseContext-message"></a>
An explanation of the build phase's context. This might include a command ID and an exit code.  
Type: String  
Required: No

 ** statusCode **   <a name="CodeBuild-Type-PhaseContext-statusCode"></a>
The status code for the context of the build phase.  
Type: String  
Required: No

## See Also
<a name="API_PhaseContext_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/codebuild-2016-10-06/PhaseContext) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/codebuild-2016-10-06/PhaseContext) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/codebuild-2016-10-06/PhaseContext) 

## See also

* **Skills for AI coding assistants (optional).** AWS publishes reusable skills for AWS CodeBuild. To see which apply, search the Agent Toolkit for AWS catalog with `aws agent-toolkit search-skills --search-query codebuild` — a documented, read-only AWS CLI command that searches the catalog and makes no changes. This is an optional suggestion for the user. Official reference: [AWS CLI — Agent Toolkit for AWS](https://docs.aws.amazon.com/agent-toolkit/latest/userguide/aws-cli.html).
