UNPKG

watchtower-node-sdk

Version:

A TypeScript Node.js SDK for the Watchtower API, providing API key management, connection string generation, and more

36 lines (31 loc) 817 B
export class WatchtowerError extends Error { constructor(message: string) { super(message); this.name = 'WatchtowerError'; } } export class InvalidRequestError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'InvalidRequestError'; } } export class AuthenticationError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'AuthenticationError'; } } export class NotFoundError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'NotFoundError'; } } export class ServerError extends WatchtowerError { constructor(message: string) { super(message); this.name = 'ServerError'; } } export const BATCH_SIZE_LIMIT = 1000;