MPC/codegen/CodeGenError.py
Nguyễn Anh Khoa bed5a47d55 init
2018-12-04 02:05:06 +07:00

17 lines
378 B
Python

class IllegalOperandException(Exception):
def __init__(self, msg):
# msg:string
self.s = msg
def __str__(self):
return "Illegal Operand: " + self.s + "\n"
class IllegalRuntimeException(Exception):
def __init__(self, msg):
# msg:string
self.s = msg
def __str__(self):
return "Illegal Runtime: " + self.s + "\n"