Errors
Error classes to find errors more accurately.
class Error(Exception)
Generic error.
class HTTPError(Error)
The API call returned an error.
class ImageError(Exception)
Generic error in terms of the avatar image.
class ImageValueError(ImageError)
The avatar image has a value error.
class ImageOSError(ImageError)
The image cannot be written to your device.
class PILError(ImageError)
PIL
is not installed or a DAvatar method that uses PIL
raised an unexpected error.
class IncorrectColor(Exception)
The color you provided is not in hex format.
class InvalidOption(Exception)
The option you provided is not a valid option.
def log_error()
Manually log an error either printing the error or raising it.
Raises: The given
exception
ifraise_error
is set toTrue
Last updated