@mavrykdynamics/taquito
Version:
High level functionality that builds upon the other packages in the Mavryk Typescript Library Suite.
31 lines (30 loc) • 1.38 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnconfiguredGlobalConstantsProviderError = exports.GlobalConstantNotFound = void 0;
const taquito_core_1 = require("@mavrykdynamics/taquito-core");
/**
* @category Error
* @description Error that indicates that a global constant does not exist
*/
class GlobalConstantNotFound extends taquito_core_1.TaquitoError {
constructor(hash) {
super();
this.hash = hash;
this.name = 'GlobalConstantNotFound';
this.message = `Please load the value associated with the constant ${hash} using the loadGlobalConstant method of the DefaultGlobalConstantsProvider.`;
}
}
exports.GlobalConstantNotFound = GlobalConstantNotFound;
/**
* @category Error
* @description Error that indicates the global constant provider not being configured under MavrykToolkit
*/
class UnconfiguredGlobalConstantsProviderError extends taquito_core_1.MavrykToolkitConfigError {
constructor() {
super();
this.name = 'UnconfiguredGlobalConstantsProviderError';
this.message =
'No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your MavrykToolkit instance.';
}
}
exports.UnconfiguredGlobalConstantsProviderError = UnconfiguredGlobalConstantsProviderError;