How to throw an exception?

I can not find the part of exception in the moonbit documentation, just only use Result is not enough, we also need somthing like panic in Rust.

We have a abort function, which is like panic in Rust.

1 Like