@eryx/exception Module

JSON

Summary

Functions

exception.new(message: string, parent: Exception?)Exception
exception.format(error: Exception, useAnsi: boolean?)string
exception.isInterrupt(error: any)boolean

API Reference

Functions

exception.new

exception.new(message: string, parent: Exception?)Exception

exception.format

exception.format(error: Exception, useAnsi: boolean?)string

exception.isInterrupt

exception.isInterrupt(error: any)boolean

Types

ExceptionType

type ExceptionType = "runtime" | "assert" | "thrown" | "syntax" | "require" | "user" | "interrupt" | "system exit"

Exception

message: string
data: any?
traceback: { ExceptionFrame }