Files
MP-SPDZ/Compiler/exceptions.py
Marcel Keller 2008a8782d Overdrive.
2018-03-02 14:33:03 +00:00

17 lines
449 B
Python

# (C) 2018 University of Bristol. See License.txt
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