Skip to main content
Module

x/tpy/mod.ts>TpyError

🔑 A strongly typed Pylon API client.
Go to Latest
class TpyError
implements Omit<ITpyErrorsProperty, "message">
extends Error
import { TpyError } from "https://deno.land/x/tpy@1.0.0-pre-release-7/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.

determination: string

The determining factor of throwing this error. The cause.

messageContext: string

Context passed into the .message() method of the matching name index of TpyErrors.

name: keyof TpyErrors

A short description of the Tpy error.

rawInfo: T

Raw information collected that was used to formulate the error.