UNPKG

@push.rocks/smartproxy

Version:

A powerful proxy package with unified route-based configuration for high traffic management. Features include SSL/TLS support, flexible routing patterns, WebSocket handling, advanced security options, and automatic ACME certificate management.

30 lines (27 loc) 643 B
/** * Custom error classes for better error handling */ export class NftBaseError extends Error { constructor(message: string) { super(message); this.name = 'NftBaseError'; } } export class NftValidationError extends NftBaseError { constructor(message: string) { super(message); this.name = 'NftValidationError'; } } export class NftExecutionError extends NftBaseError { constructor(message: string) { super(message); this.name = 'NftExecutionError'; } } export class NftResourceError extends NftBaseError { constructor(message: string) { super(message); this.name = 'NftResourceError'; } }