Error API

error_Error

Used as base for error handling.

obj error_Error {
  message: str
  stack: str
}

Fields

message - Message of the error.
stack - Stack trace of the error.

error_Error.str()

Returns a string representation.

fn error_Error.str () str

error_NewError()

Constructs Error object with specified message and returns it.

fn error_NewError (message: str) Error

Parameters

message - Message of the error.