# trap

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

Stop execution with a low-level runtime trap.

```ds title="trap"
export declare function trap(message?: string | undefined): never
```

[language/library/src/error/panic.ds:44](https://github.com/destack-sh/destack/blob/main/language/library/src/error/panic.ds#L44)
