---
title: "Capturing Exceptions in Prefix"
slug: "capturing-exceptions-in-prefix"
description: "Capture all exceptions, handled and unhandled, in Prefix by setting \"CaptureAllExceptions\": true in the Stackify.json file. "
updated: 2020-11-05T20:31:58Z
published: 2020-11-05T20:31:58Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackify.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Capturing Exceptions in Prefix

By default, Prefix will only capture unhandled exceptions for a request. In order to capture handled exceptions as well, you will need to set the following configuration in a Stackify.json file: **`"CaptureAllExceptions": true`**

```
{
"AppName": "MyApp",
"Environment": "MyEnvironment",
"CaptureAllExceptions": true
}
```

This will allow for all exceptions, both unhandled and handled, to show up inline within your requests ![prefix.exceptions.png](https://cdn.document360.io/3fcaf473-a1ef-4778-aa2c-fd28411c2b01/Images/Documentation/prefix.exceptions.png)
