Errors for Workflows might be raised, for example, by failed HTTP
requests, functions, connectors, or generated by your own workflow code.

- You can [raise custom errors](https://docs.cloud.google.com/workflows/docs/reference/syntax/raising-errors) using the `raise` syntax.
- You can [catch errors](https://docs.cloud.google.com/workflows/docs/reference/syntax/catching-errors) using a `try/except` block.
- You can [retry steps](https://docs.cloud.google.com/workflows/docs/reference/syntax/retrying) that return a specific error code and define the maximum number of retry attempts.

## Error maps

When a workflow throws an error during execution that isn't caught, the
execution fails, and an error map (a JSON dictionary) describing the error is
returned.

## What's next

- [Debugging overview](https://docs.cloud.google.com/workflows/docs/debug)
- [Troubleshoot issues](https://docs.cloud.google.com/workflows/docs/troubleshooting)
- [Known issues for Workflows](https://docs.cloud.google.com/workflows/docs/issues)