Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/exception.ts>Exception

js library written with ts, use select and chan like golang in js.
Latest
class Exception
extends Error
import { Exception } from "https://deno.land/x/easyts@0.1.3/exception.ts";

Base class for exceptions thrown by this library

Constructors

new
Exception(message?: string, opts?: ErrorOptions)

Properties

optional
canceled: boolean

Is it triggered by context default cancellation

optional
ec: number

error code

optional
temporary: boolean

If true, this is a temporary error and the operation can be retried later

optional
timeout: boolean

If true, the error is caused by exceeding the time limit