reformat Exceptions.py

float_support
Anton Lydike 4 years ago
parent 8fc519ee86
commit 2b87bbe270

@ -1,6 +1,7 @@
from abc import abstractmethod from abc import abstractmethod
from .colors import * from .colors import *
class RiscemuBaseException(BaseException): class RiscemuBaseException(BaseException):
@abstractmethod @abstractmethod
def message(self): def message(self):
@ -48,6 +49,7 @@ class LinkerException(RiscemuBaseException):
def __init__(self, msg, data): def __init__(self, msg, data):
self.msg = msg self.msg = msg
self.data = data self.data = data
def message(self): def message(self):
return FMT_PARSE + "{}(\"{}\", data={})".format(self.__class__.__name__, self.msg, self.data) + FMT_NONE return FMT_PARSE + "{}(\"{}\", data={})".format(self.__class__.__name__, self.msg, self.data) + FMT_NONE
@ -118,7 +120,6 @@ class InvalidSyscallException(RiscemuBaseException):
) + FMT_NONE ) + FMT_NONE
def INS_NOT_IMPLEMENTED(ins): def INS_NOT_IMPLEMENTED(ins):
raise UnimplementedInstruction(ins) raise UnimplementedInstruction(ins)

Loading…
Cancel
Save