Source code for scfile.formats.ol.exceptions

from dataclasses import dataclass

from scfile import exceptions


[docs] class OlDecodingError(exceptions.FileError, exceptions.ParsingError): """Base exception for OL texture related errors.""" @property def prefix(self): return "Texture"
[docs] @dataclass class OlFormatUnsupported(OlDecodingError, exceptions.UnsupportedError): """Raised when texture contains unsupported format.""" format: bytes def __str__(self): return f"{super().__str__()} has unsupported format: {self.format}."