Custom Exceptions¶
The darc
project provides following custom exceptions:
Note
All exceptions are inherited from _BaseException
.
The darc
project provides following custom warnings:
Note
All warnings are inherited from _BaseWarning
.
- exception darc.error.APIRequestFailed[source]¶
Bases:
_BaseWarning
API submit failed.
- exception darc.error.DatabaseOperaionFailed[source]¶
Bases:
_BaseWarning
Database operation execution failed.
- exception darc.error.FreenetBootstrapFailed[source]¶
Bases:
_BaseWarning
Freenet bootstrap process failed.
- exception darc.error.HookExecutionFailed[source]¶
Bases:
_BaseWarning
Failed to execute hook function.
- exception darc.error.I2PBootstrapFailed[source]¶
Bases:
_BaseWarning
I2P bootstrap process failed.
- exception darc.error.LinkNoReturn(link=None, *, drop=True)[source]¶
Bases:
_BaseException
The link has no return value from the hooks.
- Parameters:
link (darc.link.Link) – Original link object.
drop (bool) –
- Keyword Arguments:
drop – If drops the
link
from task queues.- Return type:
None
- exception darc.error.LockWarning[source]¶
Bases:
_BaseWarning
Failed to acquire Redis lock.
- exception darc.error.RedisCommandFailed[source]¶
Bases:
_BaseWarning
Redis command execution failed.
- exception darc.error.SiteNotFoundWarning[source]¶
Bases:
_BaseWarning
,ImportWarning
Site customisation not found.
- exception darc.error.TorBootstrapFailed[source]¶
Bases:
_BaseWarning
Tor bootstrap process failed.
- exception darc.error.TorRenewFailed[source]¶
Bases:
_BaseWarning
Tor renew request failed.
- exception darc.error.UnsupportedLink[source]¶
Bases:
_BaseException
The link is not supported.
- exception darc.error.UnsupportedPlatform[source]¶
Bases:
_BaseException
The platform is not supported.
- exception darc.error.UnsupportedProxy[source]¶
Bases:
_BaseException
The proxy is not supported.
- exception darc.error.WorkerBreak[source]¶
Bases:
_BaseException
Break from the worker loop.
- exception darc.error.ZeroNetBootstrapFailed[source]¶
Bases:
_BaseWarning
ZeroNet bootstrap process failed.