aboutsummaryrefslogtreecommitdiff
path: root/antlr-3.4/runtime/JavaScript/src/org/antlr/runtime/MismatchedSetException.js
blob: b1fef8fc74403dbbe666847ac7aab4f744d8a6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
org.antlr.runtime.MismatchedSetException = function(expecting, input) {
    org.antlr.runtime.MismatchedSetException.superclass.constructor.call(
            this, input);
    this.expecting = expecting;
};

org.antlr.lang.extend(
    org.antlr.runtime.MismatchedSetException,
    org.antlr.runtime.RecognitionException, {
    toString: function() {
        return "MismatchedSetException(" +
                this.getUnexpectedType() + "!=" + this.expecting + ")";
    },
    name: "org.antlr.runtime.MismatchedSetException"
});