Source code for pyatv.exceptions

"""Local exceptions used by library."""


[docs]class AuthenticationError(Exception): """Thrown when login fails.""" pass
[docs]class NotSupportedError(NotImplementedError): """Thrown when trying to perform an action that is not supported.""" pass
[docs]class InvalidDmapDataError(Exception): """Thrown when invalid DMAP data is parsed.""" pass
[docs]class UnknownServerResponseError(Exception): """Thrown when somethins unknown is send back from the Apple TV.""" pass
[docs]class UnknownMediaKind(Exception): """Thrown when an unknown media kind is found.""" pass
[docs]class UnknownPlayState(Exception): """Thrown when an unknown play state is found.""" pass
[docs]class NoAsyncListenerError(Exception): """Thrown when starting AsyncUpdater with no listener.""" pass
[docs]class AsyncUpdaterRunningError(Exception): """Thrown when performing an invalid action in AsyncUpdater..""" pass
[docs]class NoCredentialsError(Exception): """Thrown if performing an action before initialize is called.""" pass
[docs]class DeviceAuthenticationError(Exception): """Thrown when device authentication fails.""" pass