Exception API
ts
import { Exception, ExceptionType } from "try-as";Available members:
Exception.type: ExceptionTypeException.toString(): stringException.is<T>(): boolException.as<T>(): TException.clone(): ExceptionException.rethrow(): never
Exception.as<T>() supports Error subclasses, other managed objects, and primitive payloads like i32, bool, and f64.
ExceptionType values:
NoneAbortThrowUnreachable
