Skip to content

std/errors

Index

fn New(err: str): &Error
type Error
    fn Str(*self): str

New

jule
fn New(err: str): &Error

Returns an error instance with message. The returned type is an anonymous, meaning it cannot obtain any underlying type.

Error

jule
type Error: str

Internal type for anonymous errors.

Str

jule
fn Str(*self): str

Returns error as string.