41 lines
697 B
Python
41 lines
697 B
Python
"""Custom exceptions for the application."""
|
|
|
|
|
|
class BotError(Exception):
|
|
"""Base exception for bot errors."""
|
|
pass
|
|
|
|
|
|
class ProxyError(BotError):
|
|
"""Proxy related errors."""
|
|
pass
|
|
|
|
|
|
class ProxyTimeoutError(ProxyError):
|
|
"""Raised when proxy acquisition times out."""
|
|
pass
|
|
|
|
|
|
class NoProxiesAvailableError(ProxyError):
|
|
"""Raised when no proxies are available."""
|
|
pass
|
|
|
|
|
|
class BrowserError(BotError):
|
|
"""Browser related errors."""
|
|
pass
|
|
|
|
|
|
class IRCError(BotError):
|
|
"""IRC related errors."""
|
|
pass
|
|
|
|
|
|
class IRCConnectionError(IRCError):
|
|
"""Raised when IRC connection fails."""
|
|
pass
|
|
|
|
|
|
class TaskError(BotError):
|
|
"""Task related errors."""
|
|
pass |