eight_bit_computer.exceptions module¶
Custom exceptions used in this project.
-
exception
eight_bit_computer.exceptions.
EightBitComputerError
[source]¶ Bases:
exceptions.Exception
Base class for exceptions in the computer
-
exception
eight_bit_computer.exceptions.
OperationParsingError
[source]¶ Bases:
eight_bit_computer.exceptions.EightBitComputerError
Raised when parsing an operation fails.
E.g. An incorrect argument is used with the LOAD operation.
-
exception
eight_bit_computer.exceptions.
LineProcessingError
[source]¶ Bases:
eight_bit_computer.exceptions.EightBitComputerError
Raised when processing a line fails.
E.g. The line was not a constant declaration and no operations matched.
-
exception
eight_bit_computer.exceptions.
AssemblyError
[source]¶ Bases:
eight_bit_computer.exceptions.EightBitComputerError
Raised when the assembly could not be converted to machine code.