summaryrefslogtreecommitdiff
path: root/src/semanticanalysis/SemanticError.java
blob: ac2dc4c047301f15a6e9033c0d150f49dad83879 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package semanticanalysis;

/**
 * Class respresents a semantic error.
 */
public class SemanticError {

    private final String msg;

    public SemanticError(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return msg;
    }
}