Source code for fmu.dataio.exceptions
[docs]
class InvalidMetadataError(Exception):
"""Raised when valid metadata cannot be generated or returned."""
[docs]
class ValidationError(ValueError, KeyError):
"""Raise error while validating."""
def __str__(self) -> str:
"""Avoid KeyError repr formatting and preserve readable multiline messages."""
return Exception.__str__(self)