UNPKG

watchtower-node-sdk

Version:

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

40 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BATCH_SIZE_LIMIT = exports.ServerError = exports.NotFoundError = exports.AuthenticationError = exports.InvalidRequestError = exports.WatchtowerError = void 0; class WatchtowerError extends Error { constructor(message) { super(message); this.name = 'WatchtowerError'; } } exports.WatchtowerError = WatchtowerError; class InvalidRequestError extends WatchtowerError { constructor(message) { super(message); this.name = 'InvalidRequestError'; } } exports.InvalidRequestError = InvalidRequestError; class AuthenticationError extends WatchtowerError { constructor(message) { super(message); this.name = 'AuthenticationError'; } } exports.AuthenticationError = AuthenticationError; class NotFoundError extends WatchtowerError { constructor(message) { super(message); this.name = 'NotFoundError'; } } exports.NotFoundError = NotFoundError; class ServerError extends WatchtowerError { constructor(message) { super(message); this.name = 'ServerError'; } } exports.ServerError = ServerError; exports.BATCH_SIZE_LIMIT = 1000; //# sourceMappingURL=errors.js.map