panic
- Takes an array of
felt252values as panic data - Terminates the current execution
- Propagates the panic data up the call stack
Parameters
data: Array<felt252>- The panic data to be included with the panic
Returns
never- This function never returns as it terminates execution
Example
Related Functions
panic_with_byte_array- Panic with aByteArraymessagepanic!macro - Convenient macro for panicking with messages