pyrlang.errors

Exceptions of the pyrlang package.

exception pyrlang.errors.PyrlangException

Bases: Exception

Base class of every exception Pyrlang raises.

exception pyrlang.errors.NodeException(msg, *args, **kwargs)

Bases: PyrlangException

The node cannot do what was asked: it was destroyed, has no name yet, or the other node is not known.

exception pyrlang.errors.ProcessNotFoundError(msg, *args, **kwargs)

Bases: NodeException

There is no process with that pid or name.

exception pyrlang.errors.BadArgError(msg, *args, **kwargs)

Bases: PyrlangException

An argument has a value that cannot be used.

exception pyrlang.errors.EPMDClientError(msg, *args, **kwargs)

Bases: PyrlangException

EPMD answered with an error or with something that is no answer.

exception pyrlang.errors.EPMDConnectionError(msg, *args, **kwargs)

Bases: PyrlangException

EPMD cannot be reached, or does not answer in time.

exception pyrlang.errors.DistributionError(msg, *args, **kwargs)

Bases: PyrlangException

The distribution protocol failed: a handshake that did not succeed, or malformed data from a peer.

exception pyrlang.errors.ConnectionNotAllowedError(msg, *args, **kwargs)

Bases: DistributionError

The peer answered the handshake with status not_allowed: it lacks a mandatory flag from us, or its allow-list excludes this node.

exception pyrlang.errors.SimultaneousConnectError(msg, *args, **kwargs)

Bases: DistributionError

Both nodes connected to each other at once and this node’s attempt lost (status nok, or our acceptor preferred the peer’s connection).

exception pyrlang.errors.ProcessTimeoutError(msg, *args, **kwargs)

Bases: PyrlangException

Process.receive got no matching message in time.