Class PublishError (2.13.0)

Exception to be thrown during failed ordered publish.

Error

Inheritance

Error > PublishError

Package

@google-cloud/pubsub!

Constructors

(constructor)(key, err)

  constructor 
 ( 
 key 
 : 
  
 string 
 , 
  
 err 
 : 
  
 grpc 
 . 
 ServiceError 
 ); 
 

Constructs a new instance of the PublishError class

Parameters
Name Description
key string
err grpc. ServiceError

Properties

code

  code 
 : 
  
 grpc 
 . 
 status 
 ; 
 
Property Value
Type Description
grpc. Status

details

  details 
 : 
  
 string 
 ; 
 
Property Value
Type Description
string

error

  error 
 : 
  
 grpc 
 . 
 ServiceError 
 ; 
 
Property Value
Type Description
grpc. ServiceError
  metadata 
 : 
  
 grpc 
 . 
 Metadata 
 ; 
 
Property Value
Type Description
grpc. Metadata

orderingKey

  orderingKey 
 : 
  
 string 
 ; 
 
Property Value
Type Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: