Options
All
  • Public
  • Public/Protected
  • All
Menu

This error is thrown by Publisher.publish if there were any subscriber errors during publishing. This is a collection of one or more PublishError errors.

try {
await publisher.publish('topic.golang', 'hello')
} catch(err: any) {
if (err instanceof PublishErrors) {
for (let error of err.errors) {
console.log('subscriber', error.subscriber, 'got an error: ', error.error)
}
}
}

Hierarchy

  • Error
    • PublishErrors

Index

Constructors

Properties

Constructors

constructor

Properties

errors

errors: PublishError[]

An array of errors that occurred.

message

message: string

name

name: string

Optional stack

stack?: string

Generated using TypeDoc