Version: v1
Internal Error Handling
To handle any internal error that might occur on pubsub side, a the method handleError can be declared either in Subscriber Object or in SubscriptionService level.
- If the error handler is provided at
Subscriberobject level then it would override the error handler provided atSubscriptionServicelevel.
Subscriber handleError Examples#
Typescript subscription example#
/pubsub/subscriptions/simple.topic.name.console-log.sub.ts
Javascript subscription example#
/pubsub/subscriptions/simple.topic.name.sub.js
SubscriptionService handleError Examples#
Typescript subscription example#
/pubsub/subscription.service.ts
Javascript subscription example#
/pubsub/subscription.service.js