Errors

exception VideoService.__errors__.AlreadyExistsError(message: str)[source]

Bases: Exception

Parameters

messagestr

Error message.

exception VideoService.__errors__.NotFoundError(message: str)[source]

Bases: Exception

Parameters

messagestr

Error message.

VideoService.__errors__.args_handling(init: bool, **kwargs)[source]

Args Handling

Function to handle the arguments.

Parameters

initbool

If the function is called from the __init__ method.

**kwargsdict

Keyword arguments.

Raises

TypeError

If all values are not of type str.

If TAGS is not of type list.

If all values in TAGS are not of type str.

NotFoundError

If the folder does not exist.

VideoService.__errors__.error_parser(error: str) str[source]

Error Parser

Function to parse an error message.

Parameters

errorstr

Error message.

Returns

error_strstr

Parsed error message.