MPC/codegen/CodeGenError.py

17 lines
378 B
Python
Raw Permalink Normal View History

2018-12-04 02:05:06 +07:00
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"