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:
_BaseWarningAPI submit failed.
- exception darc.error.DatabaseOperaionFailed[source]¶
Bases:
_BaseWarningDatabase operation execution failed.
- exception darc.error.FreenetBootstrapFailed[source]¶
Bases:
_BaseWarningFreenet bootstrap process failed.
- exception darc.error.HookExecutionFailed[source]¶
Bases:
_BaseWarningFailed to execute hook function.
- exception darc.error.I2PBootstrapFailed[source]¶
Bases:
_BaseWarningI2P bootstrap process failed.
- exception darc.error.LinkNoReturn(link=None, *, drop=True)[source]¶
Bases:
_BaseExceptionThe link has no return value from the hooks.
- Parameters:
link (darc.link.Link) – Original link object.
drop (bool) –
- Keyword Arguments:
drop – If drops the
linkfrom task queues.- Return type:
None
- exception darc.error.LockWarning[source]¶
Bases:
_BaseWarningFailed to acquire Redis lock.
- exception darc.error.RedisCommandFailed[source]¶
Bases:
_BaseWarningRedis command execution failed.
- exception darc.error.SiteNotFoundWarning[source]¶
Bases:
_BaseWarning,ImportWarningSite customisation not found.
- exception darc.error.TorBootstrapFailed[source]¶
Bases:
_BaseWarningTor bootstrap process failed.
- exception darc.error.TorRenewFailed[source]¶
Bases:
_BaseWarningTor renew request failed.
- exception darc.error.UnsupportedLink[source]¶
Bases:
_BaseExceptionThe link is not supported.
- exception darc.error.UnsupportedPlatform[source]¶
Bases:
_BaseExceptionThe platform is not supported.
- exception darc.error.UnsupportedProxy[source]¶
Bases:
_BaseExceptionThe proxy is not supported.
- exception darc.error.WorkerBreak[source]¶
Bases:
_BaseExceptionBreak from the worker loop.
- exception darc.error.ZeroNetBootstrapFailed[source]¶
Bases:
_BaseWarningZeroNet bootstrap process failed.