balena-sdk
Version:
The Balena JavaScript SDK
24 lines (23 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OSImageNotFound = exports.ReleaseAssetAlreadyExists = void 0;
const tslib_1 = require("tslib");
const balenaErrors = tslib_1.__importStar(require("balena-errors"));
class ReleaseAssetAlreadyExists extends balenaErrors.BalenaError {
constructor(release, asset_key) {
super(new Error(`Release asset combination of ${release} and ${asset_key} already exists`));
}
}
exports.ReleaseAssetAlreadyExists = ReleaseAssetAlreadyExists;
class OSImageNotFound extends balenaErrors.BalenaError {
constructor(deviceType, version, imageType) {
if (!imageType) {
super(new Error(`No image found for device type ${deviceType} and version ${version}`));
}
else {
super(new Error(`No image found for device type ${deviceType}, version ${version}, and image type ${imageType}`));
}
}
}
exports.OSImageNotFound = OSImageNotFound;
tslib_1.__exportStar(require("balena-errors"), exports);