error
Module
Implements the Error class.
These are Mojo built-ins, so you don’t need to import them.
Error
This type represents an Error.
Fields:
- value (
StringRef
): The error message.
Functions:
__init__
__init__() -> Self
Default constructor.
Returns:
The constructed Error object.
__init__(value: StringLiteral) -> Self
Construct an Error object with a given string literal.
Args:
- value (
StringLiteral
): The error message.
Returns:
The constructed Error object.
__init__(value: StringRef) -> Self
__copyinit__
__copyinit__(existing: Self) -> Self