Files
smnp-py/smnp/error/runtime.py
2019-07-04 11:31:02 +02:00

8 lines
247 B
Python

from smnp.error.base import SmnpException
class RuntimeException(SmnpException):
def __init__(self, pos, msg):
posStr = "" if pos is None else f" [line {pos[0]+1}, col {pos[1]+1}]"
self.msg = f"Runtime error{posStr}:\n{msg}"