panic

Triggers an immediate panic with the provided data and terminates execution. # Examples

use core::panics::panic;

panic(array!['An error occurred']);

Fully qualified path: core::panics::panic

pub extern fn panic(data: Array<felt252>) -> crate::never;