Skip to main content
Module

x/tpy/mod.ts>TpyError

🔑 A strongly typed Pylon API client.
Go to Latest
class TpyError
implements Omit<ITpyErrors[string], "message">
extends Error
import { TpyError } from "https://deno.land/x/tpy@v1.0.0-pre-release-11/mod.ts";

An error wrapper of TpyErrors that provides specific context of the environment to explain why it was thrown.

Constructors

new
TpyError(
name: keyof TpyErrors,
determination: string,
messageContext: string,
rawinfo: T,
)

Type Parameters

T

The type of rawInfo.

Properties

description: string

An explanation of what might have happened based on the error's name.

determination: string

The determining factor of throwing this error. The cause.

name: keyof TpyErrors

A short description of the Tpy error.

rawInfo: T

Raw information collected that was used to formulate the error.