Skip to main content
Module

x/easyts/mod.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.2/mod.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