ByteArray message.
Constructs a panic message by prepending the BYTE_ARRAY_MAGIC value and
serializing the provided ByteArray into the panic data.
ByteArray message.
Constructs a panic message by prepending the BYTE_ARRAY_MAGIC value and
serializing the provided ByteArray into the panic data.
pub fn panic_with_byte_array(err: ByteArray) -> never
use core::panics::panic_with_byte_array;
let error_msg = "An error occurred";
panic_with_byte_array(@error_msg);
Was this page helpful?