@mavrykdynamics/taquito
Version:
High level functionality that builds upon the other packages in the Mavryk Typescript Library Suite.
31 lines (30 loc) • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnspecifiedForgerError = exports.ForgingMismatchError = void 0;
const taquito_core_1 = require("@mavrykdynamics/taquito-core");
/**
* @category Error
* @description Error that indicates CompositeForger.forge() results doesn't match each other
*/
class ForgingMismatchError extends taquito_core_1.TaquitoError {
constructor(results) {
super();
this.results = results;
this.name = 'ForgingMismatchError';
this.message = `Forging mismatch error`;
}
}
exports.ForgingMismatchError = ForgingMismatchError;
/**
* @category Error
* @description Error that indicates no forger has been configured for CompositeForger
*/
class UnspecifiedForgerError extends taquito_core_1.MavrykToolkitConfigError {
constructor() {
super();
this.name = 'UnspecifiedForgerError';
this.message =
'No forger has been configured. Please configure new CompositeForger([rpcForger, localForger]) with your MavrykToolkit instance.';
}
}
exports.UnspecifiedForgerError = UnspecifiedForgerError;