[][src]Function ontio_std::runtime::panic

pub fn panic(msg: &str) -> !

When the function is executed, all writes to the chain will be cancelled, and the error message will be returned.

Example

  panic("panic");