Source code for opendrift.errors
[docs]
class WrongMode(Exception):
def __init__(self, expected_mode, real_mode, msg = None):
super().__init__(f"Cannot call this function in this mode: {real_mode}, only in: {expected_mode}: {msg}")
[docs]
class WrongMode(Exception):
def __init__(self, expected_mode, real_mode, msg = None):
super().__init__(f"Cannot call this function in this mode: {real_mode}, only in: {expected_mode}: {msg}")