@mavrykdynamics/taquito
Version:
High level functionality that builds upon the other packages in the Mavryk Typescript Library Suite.
31 lines (30 loc) • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidFilterExpressionError = exports.UnsupportedEventError = void 0;
const taquito_core_1 = require("@mavrykdynamics/taquito-core");
/**
* @category Error
* @description Error that indicates an unsupported event being passed or used
*/
class UnsupportedEventError extends taquito_core_1.ParameterValidationError {
constructor(type) {
super();
this.type = type;
this.name = 'UnsupportedEventError';
this.message = `Unsupported event type "${type}" expecting one of the "data", "error", or "close".`;
}
}
exports.UnsupportedEventError = UnsupportedEventError;
/**
* @category Error
* @description Error that indicates an invalid filter expression being passed or used
*/
class InvalidFilterExpressionError extends taquito_core_1.ParameterValidationError {
constructor(invalidExpression) {
super();
this.invalidExpression = invalidExpression;
this.name = 'InvalidFilterExpressionError';
this.message = `Invalid filter expression expecting the object to contain either and/or property`;
}
}
exports.InvalidFilterExpressionError = InvalidFilterExpressionError;