# Merx::exceptionDetails()

> Diagnostic details of an exception, for use in `Exception::$details`

- Source: `src/Merx.php#L304` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/Merx.php#L304>

```php
Merx::exceptionDetails(Throwable $ex): array
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$ex` | `Throwable` | `–` |

## Return type

`array`

Empty array unless Kirby’s `debug` option is enabled

## Description

The API is reachable without authentication, so internals such as the file
path are only handed out while `debug` is on. The full exception is written
to the log either way.

## Parent class

`Wagnerwagner\Merx\Merx`
