# Panic

`import { Panic } from "destack:error";`

Panic instance observed by hooks and supervisors.

```ds title="Panic"
export struct Panic {
    message: string;
    location: SourceLocation;
    stack: StackTrace;
}
```

[language/library/src/error/panic.ds:5:14](https://github.com/destack-sh/destack/blob/main/language/library/src/error/panic.ds#L5-L14)

## Members

### `message: string`

The panic message.

### `location: SourceLocation`

Source location where the panic began.

### `stack: StackTrace`

Captured stack trace when available.
