Source code for starbase.exceptions

__title__ = 'starbase.exceptions'
__author__ = 'Artur Barseghyan'
__copyright__ = 'Copyright (c) 2013 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'
__all__ = ('ImproperlyConfigured', 'InvalidArguments', 'ParseError', 'DoesNotExist')

class BaseException(Exception):
    """
    Base exception.
    """


[docs]class ImproperlyConfigured(BaseException): """ Exception raised when developer didn't configure the code properly. """
[docs]class InvalidArguments(ValueError, BaseException): """ Exception raised when invalid arguments supplied. """
[docs]class ParseError(BaseException): """ Raised if the request or response contain malformed data. """
[docs]class DoesNotExist(BaseException): """ Does not exist. """
Read the Docs v: 0.2.7
Versions
latest
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2
0.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.