> For the complete documentation index, see [llms.txt](https://musicq.gitbook.io/unwrapit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://musicq.gitbook.io/unwrapit/type/panic.md).

# Panic

```typescript
type Panic = (
  message: any,
  opt?: {cause?: any; shouldExit?: boolean}
) => never
```

`Panic` is the type of the panic function which will be called when error occurs.
