Errors handling
During wampy instance lifetime there can be many cases when error happens: some made by developer mistake, some are bound to WAMP protocol violation, some came from other peers. Errors that can be caught by wampy instance itself are stored in opStatus.error
, while others are just thrown.
This allows, for example, convenient handling of different types of errors:
Wampy package exposes next Errors
classes:
UriError
NoBrokerError
NoCallbackError
InvalidParamError
NoSerializerAvailableError
NonExistUnsubscribeError
NoDealerError
RPCAlreadyRegisteredError
NonExistRPCUnregistrationError
NonExistRPCInvocationError
NonExistRPCReqIdError
NoRealmError
NoWsOrUrlError
NoCRACallbackOrIdError
ChallengeExceptionError
PPTNotSupportedError
PPTInvalidSchemeError
PPTSerializerInvalidError
PPTSerializationError
ProtocolViolationError
AbortError
WampError
SubscribeError
UnsubscribeError
PublishError
RegisterError
UnregisterError
CallError
WebsocketError
For errors attributes look at src/errors.js file.
Last updated