Add 'source' to RuntimeException
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
from smnp.error.base import SmnpException
|
||||
from smnp.error.runtime import RuntimeException
|
||||
|
||||
|
||||
class CustomException(SmnpException):
|
||||
class CustomException(RuntimeException):
|
||||
def __init__(self, message, pos):
|
||||
super().__init__(message, pos)
|
||||
|
||||
def _title(self):
|
||||
return "Execution Error"
|
||||
|
||||
def _postMessage(self):
|
||||
return "\n" + self.environment.callStackToString() if len(self.environment.callStack) > 0 else ""
|
||||
Reference in New Issue
Block a user