# Error handling and exception policy

## Exception handling

The Digital River Magento extension invokes an exception and logging for all 400 and 500 response statuses returned. The connector uses a try-and-catch exception policy. All 400 and 500 exceptions thrown via the DrPay extension are logged to the Magneto `system.log` in the `/var/log directory`. The application will not roll back and retry processing when an error or exception occurs unless a follow-on action is performed by the end shopper. Some system-to-system integrations that are not shopper-facing will include retry mechanisms.

All **EFS** (ElectronicFullfilmentService), **EFN** (ElectronicFulfillmentNotice), and **PON** (PostOrderNotification) failures (400s and 500s) will be retried automatically by the Magento and Digital River applications. These integrations are system-to-system and do not have a direct impact on the shopper checkout experience. 400 errors will be logged on Digital River’s application and will have operational alerts in place based on application and client thresholds. A failed EFS will have no impact on real-time and redirect payments; however, in the case of wire transfer, a failed EFS will result in a delay to shipment. A failed EFN can result in a delay in capturing the funds from the end shopper. Failed PONs will not impact the end shopper, but could delay the Magento application order status being updated. All PONs are triggered based on events initiated from the Digital River application and are intended to notify the OMS of the current order state to ensure the applications are in sync.


---

# Agent Instructions: 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://docs.digitalriver.com/adobe-commerce-extension/1.0.0/operation-work-and-process-flows/error-handling-and-exception-policy.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.
