Sign in

    majikxu/laya/error does not have a README file

    LayaError

    pub(all) suberror LayaError {
    LayaError(String)
    } derive(Eq)

    The single failure type used across laya.mbt.

    Loading a checkpoint touches a lot of external data — JSON configs written by another toolchain, a memory-mapped tensor file, a tokenizer.json — so almost every entry point can fail for reasons that are worth reporting verbatim rather than collapsing into a variant.
    impl Show for LayaError

    expect

    fn expect(condition : Bool, message : String) -> Unit raise LayaError

    Raise a LayaError when condition does not hold.

    Source Files