macro_rules! internal {
    { $( $arg:tt )* } => { ... };
}
Expand description

Create an internal error, including a message like format!, and capturing this call site

The calling stack backtrace is also captured, when the backtrace cargo feature this is enabled.

Examples

use tor_error::internal;

let need_cell = cells.next().ok_or_else(|| internal!("no cells"))?;