Exception

Overview

An Exception object is typically the result of a panic statement. It descibes the situation in which a program has failed, and should be treated as fatal. Examples where an Exception could be found include calling a function with invalid arguments, or when other critical conditions were not met.

Fields

.name

fn -> String

Gets the name of the exception.

.message

fn -> String

Gets the human-readable description of the exception.

Statics

.from

fn (message: String, ...args: Any) -> Void

Constructs an Exception.

.named

fn (name: String, message: String, ...args: Any) -> Void

Constructs a named Exception.

On this page