aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/zwobble/couscous/interpreter/errors/InvalidCast.java
blob: a8a4464b036e9dfc4179919c984ead9912a89d1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.zwobble.couscous.interpreter.errors;

import org.zwobble.couscous.types.Type;

public class InvalidCast extends InterpreterException {
    private final Type expected;
    private final Type actual;

    public InvalidCast(Type expected, Type actual) {

        this.expected = expected;
        this.actual = actual;
    }

    public Type getExpected() {
        return expected;
    }

    public Type getActual() {
        return actual;
    }
}