error.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConflictActionError = exports.NotSupportedError = void 0;
/**
 * NotSupportedError is thrown when calling a not supported method on AST node.
 * @extends Error
 */
class NotSupportedError extends Error {
    constructor(message) {
        super(message);
        this.name = "NotSupportedError";
    }
}
exports.NotSupportedError = NotSupportedError;
/**
 * ConflictActionError is thrown when there is a conflict among actions.
 */
class ConflictActionError extends Error {
    constructor() {
        super("mutation actions are conflicted");
        this.name = "ConflictActionError";
    }
}
exports.ConflictActionError = ConflictActionError;