> For the complete documentation index, see [llms.txt](https://changelog.usetoggle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.usetoggle.com/march-2025/02-04-2025-shopify-gift-cards-error-handling.md).

# 02/04/2025 - Shopify Gift Cards - Error Handling

## :wrench: Improvements

1. New Custom Exception class handles GraphQL responses properly in addition to REST responses
2. Extra logic to determine GraphQL failures inside try catch statements
3. Refactor of logging: standardise log messages, catch all instance of possible failure
4. Update to unit tests

:man\_technologist: Lee


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://changelog.usetoggle.com/march-2025/02-04-2025-shopify-gift-cards-error-handling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
