@aiozstream/nodejs-client
Version:
AIOZ stream nodejs API client
12 lines (11 loc) • 369 B
JavaScript
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;
;