Source code for scfile.formats.ms3d.exceptions

from dataclasses import dataclass

from scfile import exceptions


[docs] class Ms3dEncodingError(exceptions.BaseIOError, exceptions.EncodingError): """Base exception for MS3D model related errors.""" @property def prefix(self): return "MS3D Model"
[docs] @dataclass class Ms3dCountsLimit(Ms3dEncodingError, exceptions.UnsupportedError): """Raised when model exceeds format limitations.""" type: str count: int limit: int def __str__(self) -> str: return f"{super().__str__()} - {self.type} count exceeds limit: {self.count:,} > {self.limit:,}"