Source code for scfile.formats.mcsa.exceptions

from dataclasses import dataclass

from scfile import exceptions


[docs] class McsaDecodingError(exceptions.FileError, exceptions.DecodingError): """Base exception for MCSA model related errors.""" @property def prefix(self): return "Model"
[docs] @dataclass class McsaVersionUnsupported(McsaDecodingError, exceptions.UnsupportedError): """Raised when attempting to parse unsupported model version.""" version: float def __str__(self): return f"{super().__str__()} has unsupported version: {self.version}."