gumnut_assembler.exceptions

Module Contents

exception gumnut_assembler.exceptions.Error(expression, message)

Bases: Exception

Base class for all exceptions.

This is the base class for all exceptions raised within the Gumnut-Assembler context.

Parameters
  • expression – A string containing the expression which caused the exception to be raised.

  • message – A string containing some more information what could raise such an exception.

__repr__(self)

Return repr(self).

as_dict(self)
exception gumnut_assembler.exceptions.InstructionMemorySizeExceeded(expression, message)

Bases: Error

Get’s raised when trying to upload more data into the instruction memory than it can hold.

exception gumnut_assembler.exceptions.DataMemorySizeExceeded(expression, message)

Bases: Error

Get’s raised when trying to upload more data into the data memory than it can hold.

exception gumnut_assembler.exceptions.UnknownInstruction(expression, message)

Bases: Error

Get’s raised when an unknown instruction is encountered.