BallException class

A typed exception thrown by a Ball program's throw expression. Preserves the original value so catch clauses can match on type.

Inheritance
Implemented types

Constructors

BallException(String typeName, Object? value)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
The type name of the thrown value (e.g. "FormatException").
final
value → Object?
The actual thrown value (could be a string, map, etc.).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited