autobahn.wamp.exception

Exceptions

ApplicationError

Base class for all exceptions that can/may be handled

Error

Base class for all exceptions related to WAMP.

InvalidPayload

The URI for a topic, procedure or error is not a valid WAMP URI.

InvalidUri

The URI for a topic, procedure or error is not a valid WAMP URI.

InvalidUriError

Exception raised when an invalid WAMP URI was used.

NotAuthorized

Not authorized to perform the respective action.

ProtocolError

Exception raised when WAMP protocol was violated. Protocol errors

SerializationError

Exception raised when the WAMP serializer could not serialize the

SessionNotReady

The application tried to perform a WAMP interaction, but the

TransportLost

Exception raised when the transport underlying the WAMP session

TypeCheckError

The URI for a topic published with invalid argument types or a

Module Contents

exception ApplicationError(error, *args, **kwargs)[source]

Bases: Error

Base class for all exceptions that can/may be handled at the application level.

AUTHENTICATION_FAILED = 'wamp.error.authentication_failed'[source]

Something failed with the authentication itself, that is, authentication could not run to end.

AUTHORIZATION_FAILED = 'wamp.error.authorization_failed'[source]

A Dealer or Broker could not determine if the Peer is authorized to perform a join, call, register, publish or subscribe, since the authorization operation itself failed. E.g. a custom authorizer did run into an error.

CANCELED = 'wamp.error.canceled'[source]

A Dealer or Callee canceled a call previously issued (WAMP AP).

CLOSE_REALM = 'wamp.error.close_realm'[source]

The Peer want to leave the realm - used as a GOODBYE reason.

ENC_DECRYPT_ERROR = 'wamp.error.encryption.decrypt_error'[source]

WAMP-cryptobox application payload end-to-end encryption error.

ENC_NO_PAYLOAD_CODEC = 'wamp.error.no_payload_codec'[source]

WAMP message in payload transparency mode received, but no codec set or codec did not decode the payload.

ENC_TRUSTED_URI_MISMATCH = 'wamp.error.encryption.trusted_uri_mismatch'[source]

WAMP-cryptobox application payload end-to-end encryption error.

GOODBYE_AND_OUT = 'wamp.error.goodbye_and_out'[source]

A Peer acknowledges ending of a session - used as a GOOBYE reply reason.

INVALID_ARGUMENT = 'wamp.error.invalid_argument'[source]

A call failed, since the given argument types or values are not acceptable to the called procedure - in which case the Callee may throw this error. Or a Router performing payload validation checked the payload (args / kwargs) of a call, call result, call error or publish, and the payload did not conform.

INVALID_PAYLOAD = 'wamp.error.invalid_payload'[source]

The application payload could not be serialized.

INVALID_URI = 'wamp.error.invalid_uri'[source]

Peer provided an incorrect URI for a URI-based attribute of a WAMP message such as a realm, topic or procedure.

NOT_AUTHORIZED = 'wamp.error.not_authorized'[source]

A call, register, publish or subscribe failed, since the session is not authorized to perform the operation.

NO_AUTH_METHOD = 'wamp.error.no_auth_method'[source]

No authentication method the peer offered is available or active.

NO_ELIGIBLE_CALLEE = 'wamp.error.no_eligible_callee'[source]

A Dealer could not perform a call, since a procedure with the given URI is registered, but Callee Black- and Whitelisting and/or Caller Exclusion lead to the exclusion of (any) Callee providing the procedure (WAMP AP).

NO_SUCH_PRINCIPAL = 'wamp.error.no_such_principal'[source]

A Peer was authenticated for an authid that does not or longer exists.

NO_SUCH_PROCEDURE = 'wamp.error.no_such_procedure'[source]

A Dealer could not perform a call, since not procedure is currently registered under the given URI.

NO_SUCH_REALM = 'wamp.error.no_such_realm'[source]

Peer wanted to join a non-existing realm (and the Router did not allow to auto-create the realm).

NO_SUCH_REGISTRATION = 'wamp.error.no_such_registration'[source]

A Dealer could not perform a unregister, since the given registration is not active.

NO_SUCH_ROLE = 'wamp.error.no_such_role'[source]

A Peer was to be authenticated under a Role that does not (or no longer) exists on the Router. For example, the Peer was successfully authenticated, but the Role configured does not exists - hence there is some misconfiguration in the Router.

NO_SUCH_SESSION = 'wamp.error.no_such_session'[source]

A router could not perform an operation, since a session ID specified was non-existant.

NO_SUCH_SUBSCRIPTION = 'wamp.error.no_such_subscription'[source]

A Broker could not perform a unsubscribe, since the given subscription is not active.

PAYLOAD_SIZE_EXCEEDED = 'wamp.error.payload_size_exceeded'[source]

The application payload could not be transported becuase the serialized/framed payload exceeds the transport limits.

PROCEDURE_ALREADY_EXISTS = 'wamp.error.procedure_already_exists'[source]

A procedure could not be registered, since a procedure with the given URI is already registered.

PROCEDURE_EXISTS_INVOCATION_POLICY_CONFLICT = 'wamp.error.procedure_exists_with_different_invocation_policy'[source]

A procedure could not be registered, since a procedure with the given URI is already registered, and the registration has a conflicting invocation policy.

SYSTEM_SHUTDOWN = 'wamp.error.system_shutdown'[source]

The Peer is shutting down completely - used as a GOODBYE (or ABORT) reason.

TIMEOUT = 'wamp.error.timeout'[source]

A pending (in-flight) call was timed out.

TYPE_CHECK_ERROR = 'wamp.error.type_check_error'[source]

WAMP procedure called with wrong argument types or subscription published with wrong argument types.

__str__()[source]

Return str(self).

__unicode__()[source]
callee[source]
callee_authid[source]
callee_authrole[source]
enc_algo[source]
error[source]
error_message()[source]

Get the error message of this exception.

Returns:

The error message.

Return type:

str

forward_for[source]
kwargs[source]
exception Error[source]

Bases: RuntimeError

Base class for all exceptions related to WAMP.

exception InvalidPayload[source]

Bases: Exception

The URI for a topic, procedure or error is not a valid WAMP URI.

exception InvalidUri[source]

Bases: Exception

The URI for a topic, procedure or error is not a valid WAMP URI.

exception InvalidUriError[source]

Bases: Error

Exception raised when an invalid WAMP URI was used.

exception NotAuthorized[source]

Bases: Exception

Not authorized to perform the respective action.

exception ProtocolError[source]

Bases: Error

Exception raised when WAMP protocol was violated. Protocol errors are fatal and are handled by the WAMP implementation. They are not supposed to be handled at the application level.

exception SerializationError[source]

Bases: Error

Exception raised when the WAMP serializer could not serialize the application payload (args or kwargs for CALL, PUBLISH, etc).

exception SessionNotReady[source]

Bases: Error

The application tried to perform a WAMP interaction, but the session is not yet fully established.

exception TransportLost[source]

Bases: Error

Exception raised when the transport underlying the WAMP session was lost or is not connected.

exception TypeCheckError(*args, **kwargs)[source]

Bases: ApplicationError

The URI for a topic published with invalid argument types or a procedure called with invalid arguments types.