Defines exception classes for the wormhole secure file transfer protocol, including server errors, connection failures, transfer problems, and security-related errors.
# Source: https://github.com/magic-wormhole/magic-wormhole | License: MIT | Copyright 2015 Brian Warner
# Provided via justclaw.it.com; keep this notice with the code.
class WormholeError(Exception):
"""Parent class for all wormhole-related errors"""
class UnsendableFileError(Exception):
"""
A file you wanted to send couldn't be read, maybe because it's not
a file, or because it's a symlink that points to something
that doesn't exist.
To ignore this kind of error, you can run wormhole with the
--ignore-unsendable-files flag.
"""
class ServerError(WormholeError):
"""The relay server complained about something we did."""
class ServerConnectionError(WormholeError):
"""We had a problem connecting to the relay server:"""
def __init__(self, url
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key