UNPKG

@qbraid-core/base

Version:

Core functionality for interacting with qBraid Cloud Services.

20 lines 848 B
"use strict"; // Copyright (c) 2025, qBraid Development Team // All rights reserved. Object.defineProperty(exports, "__esModule", { value: true }); exports.QbraidError = void 0; const DEFAULT_ERROR_MESSAGE = 'An unexpected error occurred while processing your qBraid command. ' + 'Please check your input and try again. If the problem persists, ' + 'visit https://github.com/qBraid/community/issues to file a bug report.'; class QbraidError extends Error { constructor(message) { super(message || DEFAULT_ERROR_MESSAGE); this.name = 'QbraidError'; // Maintains proper stack trace for where error was thrown (only available on V8) if (Error.captureStackTrace) { Error.captureStackTrace(this, QbraidError); } } } exports.QbraidError = QbraidError; //# sourceMappingURL=errors.js.map