1"use strict"; 2Object.defineProperty(exports, "__esModule", { value: true }); 3exports.UnsupportedAlgorithmError = exports.CryptoError = exports.LengthOrHashMismatchError = exports.UnsignedMetadataError = exports.RepositoryError = exports.ValueError = void 0; 4// An error about insufficient values 5class ValueError extends Error { 6} 7exports.ValueError = ValueError; 8// An error with a repository's state, such as a missing file. 9// It covers all exceptions that come from the repository side when 10// looking from the perspective of users of metadata API or ngclient. 11class RepositoryError extends Error { 12} 13exports.RepositoryError = RepositoryError; 14// An error about metadata object with insufficient threshold of signatures. 15class UnsignedMetadataError extends RepositoryError { 16} 17exports.UnsignedMetadataError = UnsignedMetadataError; 18// An error while checking the length and hash values of an object. 19class LengthOrHashMismatchError extends RepositoryError { 20} 21exports.LengthOrHashMismatchError = LengthOrHashMismatchError; 22class CryptoError extends Error { 23} 24exports.CryptoError = CryptoError; 25class UnsupportedAlgorithmError extends CryptoError { 26} 27exports.UnsupportedAlgorithmError = UnsupportedAlgorithmError; 28