macro_rules! panic_with_error {
($env:expr, $error:expr) => { ... };
}
Expand description
Panic with the given error.
The first argument in the list must be a reference to an Env.
The second argument is an error value. The error value will be given to any calling contract.
Equivalent to panic!
, but with an error value instead of a string. The
error value will be given to any calling contract.
See contracterror
for how to define an error type.