UNPKG

@aiozstream/nodejs-client

Version:
12 lines (11 loc) 369 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class StreamError extends Error { constructor(statusCode, problemDetails) { super(problemDetails?.title || 'StreamError'); this.problemDetails = problemDetails; this.code = statusCode; this.stack = new Error().stack; } } exports.default = StreamError;