Source code for yowsup_gateway.exceptions

# -*- coding: utf-8 -*-
[docs]class YowsupGatewayError(Exception): pass
[docs]class UnexpectedError(YowsupGatewayError): """ Raised for unknown or unexpected errors. """ pass
[docs]class ConfigurationError(YowsupGatewayError): """ Raised when gateway detects and error in configurations """ pass
[docs]class ConnectionError(YowsupGatewayError): """ Raised when gateway tries to perform an action which requires to be connected to WhatsApp """ pass
[docs]class AuthenticationError(YowsupGatewayError): """ Raised when gateway cannot authenticate with the whatsapp. This means the password for number is incorrect. Check if registration was correct """ pass