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

# core::panic_with_felt252

Panics with the given `felt252` as error message.

## Signature

```rust theme={null}
pub fn panic_with_felt252(err_code: felt252) -> never
```

## Examples

```rust theme={null}
use core::panic_with_felt252;

panic_with_felt252('error message');
```
