Source code for disbi.exceptions
"""
Custom DISBI exceptions.
"""
[docs]class NoRelatedMeasurementModel(Exception):
"""Raise if an experiment has no data attached to it."""
def __init__(self, exp, *args, **kwargs):
self.exp = exp
super().__init__(*args, **kwargs)
[docs]class NotSupportedError(Exception):
"""Raise if a requested operation is not supported."""
pass