2025-03-18 00:17:27 +05:30
|
|
|
class PyPlayreadyException(Exception):
|
|
|
|
"""Exceptions used by pyplayready."""
|
|
|
|
|
|
|
|
|
|
|
|
class TooManySessions(PyPlayreadyException):
|
|
|
|
"""Too many Sessions are open."""
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidSession(PyPlayreadyException):
|
|
|
|
"""No Session is open with the specified identifier."""
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidPssh(PyPlayreadyException):
|
|
|
|
"""The Playready PSSH is invalid or empty."""
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidInitData(PyPlayreadyException):
|
|
|
|
"""The Playready Cenc Header Data is invalid or empty."""
|
|
|
|
|
|
|
|
|
|
|
|
class DeviceMismatch(PyPlayreadyException):
|
|
|
|
"""The Remote CDMs Device information and the APIs Device information did not match."""
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidLicense(PyPlayreadyException):
|
|
|
|
"""Unable to parse XMR License."""
|
|
|
|
|
|
|
|
|
|
|
|
class InvalidCertificateChain(PyPlayreadyException):
|
2025-03-18 00:23:51 +05:30
|
|
|
"""The BCert is not correctly formatted."""
|
2025-03-18 00:17:27 +05:30
|
|
|
|
|
|
|
|
|
|
|
class OutdatedDevice(PyPlayreadyException):
|
|
|
|
"""The PlayReady Device is outdated and does not support a specific operation."""
|