Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (13 sloc) 562 Bytes
# -*- coding: utf-8 -*-
# this module contains the set of mylifeDB exceptions
#-----------------------------------------------------------------------------
# EXCEPTIONS
#-----------------------------------------------------------------------------
class MyLifeException(RuntimeError):
""" Random exception """
class ConnectionError(MyLifeException):
"""A Connection error occurred."""
class Timeout(MyLifeException):
"""The request timed out."""
class InvalidURL(MyLifeException, ValueError):
""" The URL provided was somehow invalid. """