Module weheartpy.handler
None
None
View Source
# Error Handler for whi
class Error():
'''
Base class where errors originate from.
'''
pass
class NoPostsFound(Error):
'''
Raised when no posts are returned from a search result.
'''
pass
class NoCollectionsFound(Error):
'''
Raised when no collections are returned from a search result.
'''
pass
class ConnectionError(Error):
'''
Raised when the client cannot connect to weheartit.com
'''
pass
class NoUsersFound(Error):
'''
Raised when a search result returns no users.
'''
pass
Classes
ConnectionError
class ConnectionError(
/,
*args,
**kwargs
)
View Source
class ConnectionError(Error):
'''
Raised when the client cannot connect to weheartit.com
'''
pass
Ancestors (in MRO)
- weheartpy.handler.Error
Error
class Error(
/,
*args,
**kwargs
)
View Source
class Error():
'''
Base class where errors originate from.
'''
pass
Descendants
- weheartpy.handler.NoPostsFound
- weheartpy.handler.NoCollectionsFound
- weheartpy.handler.ConnectionError
- weheartpy.handler.NoUsersFound
NoCollectionsFound
class NoCollectionsFound(
/,
*args,
**kwargs
)
View Source
class NoCollectionsFound(Error):
'''
Raised when no collections are returned from a search result.
'''
pass
Ancestors (in MRO)
- weheartpy.handler.Error
NoPostsFound
class NoPostsFound(
/,
*args,
**kwargs
)
View Source
class NoPostsFound(Error):
'''
Raised when no posts are returned from a search result.
'''
pass
Ancestors (in MRO)
- weheartpy.handler.Error
NoUsersFound
class NoUsersFound(
/,
*args,
**kwargs
)
View Source
class NoUsersFound(Error):
'''
Raised when a search result returns no users.
'''
pass
Ancestors (in MRO)
- weheartpy.handler.Error