Crate tenferro_internal_error

Crate tenferro_internal_error 

Source
Expand description

Internal shared error definitions for tenferro surface crates.

§Examples

use tenferro_internal_error::{Error, Result};

fn require_runtime(ready: bool) -> Result<()> {
    if ready {
        Ok(())
    } else {
        Err(Error::RuntimeNotConfigured)
    }
}

assert!(require_runtime(true).is_ok());
assert!(require_runtime(false).is_err());

Enums§

Error
Shared error type for dynamic tenferro surface crates.

Type Aliases§

Result
Convenience result alias for tenferro surface errors.