Files
MP-SPDZ/Compiler/exceptions.py
Marcel Keller cc0711c224 MP-SPDZ.
2018-10-11 17:20:26 +11:00

15 lines
396 B
Python

class CompilerError(Exception):
"""Base class for compiler exceptions."""
pass
class RegisterOverflowError(CompilerError):
pass
class MemoryOverflowError(CompilerError):
pass
class ArgumentError(CompilerError):
""" Exception raised for errors in instruction argument parsing. """
def __init__(self, arg, msg):
self.arg = arg
self.msg = msg