error Module¶
A module containing all the exceptions raised by pytvdbapi.
pytvdbapi will only raise exceptions that are of type PytvdbapiError or it’s subclasses.
-
exception
pytvdbapi.error.PytvdbapiError(msg, *args, **kwargs)¶ Bases:
exceptions.ExceptionBase exception for all exceptions raised by pytvdbapi
-
exception
pytvdbapi.error.BadData(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiErrorRaised if there are issues parsing the XML data provided by thetvdb.com
Usualy a BadData exception is the result of a malfunctioning backend server. The problem is that the server returns a 200 - OK status code but fails to provide valid data in the response.
-
exception
pytvdbapi.error.ConnectionError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiErrorRaised by the
pytvdbapi.Loaderwhen unable to connect to the provided URL.
-
exception
pytvdbapi.error.TVDBAttributeError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiError,exceptions.AttributeErrorA replacement for the standard AttributeError.
-
exception
pytvdbapi.error.TVDBIndexError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiError,exceptions.IndexErrorA replacement for the standard IndexError.
-
exception
pytvdbapi.error.TVDBIdError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiErrorRaised when trying to get a show using an invalid Show ID
-
exception
pytvdbapi.error.TVDBValueError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiError,exceptions.ValueErrorA replacement for the standard ValueError exception.
-
exception
pytvdbapi.error.TVDBNotFoundError(msg, *args, **kwargs)¶ Bases:
pytvdbapi.error.PytvdbapiErrorRaised when the data can not be found. Represent the 404 http code.