module dcpu16.emulator.exception; import std.exception; import std.string; import dcpu16.emulator.cpu: Instruction; import dcpu16.emulator: Computer; class Dcpu16Exception : Exception { this( string msg, Computer comp, string file, size_t line ) pure { super( format( "%s\n%s", msg, comp.machineState ), file, line ); } }