Files
pyplayready/pyplayready/exceptions.py
2024-11-15 00:13:34 +02:00

18 lines
530 B
Python

class PyPlayredyException(Exception):
"""Exceptions used by pyplayready."""
class TooManySessions(PyPlayredyException):
"""Too many Sessions are open."""
class InvalidSession(PyPlayredyException):
"""No Session is open with the specified identifier."""
class InvalidInitData(PyPlayredyException):
"""The Playready Cenc Header Data is invalid or empty."""
class DeviceMismatch(PyPlayredyException):
"""The Remote CDMs Device information and the APIs Device information did not match."""