new exceptions
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
package typechecker;
|
||||||
|
|
||||||
|
public class AssignmentTypeMismatchException extends RuntimeException {
|
||||||
|
|
||||||
|
public AssignmentTypeMismatchException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package typechecker;
|
||||||
|
|
||||||
|
public class OperatorTypeMismatchException extends RuntimeException {
|
||||||
|
|
||||||
|
public OperatorTypeMismatchException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package typechecker;
|
||||||
|
|
||||||
|
public class OperatorUsageException extends RuntimeException {
|
||||||
|
|
||||||
|
public OperatorUsageException(String message) {
|
||||||
|
super(message);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user