21 lines
641 B
Python
21 lines
641 B
Python
from smnp.error.base import SmnpException
|
|
|
|
|
|
class IllegalFunctionInvocationException(SmnpException):
|
|
def __init__(self, expected, found):
|
|
self.msg = f"Illegal function invocation\n\nExpected signature:\n{expected}\n\nFound:\n{found}"
|
|
|
|
|
|
class FunctionNotFoundException(SmnpException):
|
|
def __init__(self, function):
|
|
self.msg = f"Function '{function}' not found"
|
|
|
|
|
|
class MethodNotFoundException(SmnpException):
|
|
def __init__(self, object, method):
|
|
self.msg = f"Method '{method}' of type '{object}' not found"
|
|
|
|
|
|
class IllegalArgumentException(SmnpException):
|
|
def __init__(self, msg):
|
|
self.msg = msg |