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 OlKindUnsupported(OlDecodingError, exceptions.UnsupportedError):
"""Raised when texture contains unsupported kind."""
kind: int
def __str__(self):
return f"{super().__str__()} has unsupported kind: {self.kind}."