Exception: Gcloud::Pubsub::Error

Inherits:
Error
  • Object
show all
Defined in:
lib/gcloud/pubsub/errors.rb

Overview

Storage Error

Base Pub/Sub exception class.

Direct Known Subclasses

ApiError

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#responseObject (readonly)

The response object of the failed HTTP request.



25
26
27
# File 'lib/gcloud/pubsub/errors.rb', line 25

def response
  @response
end

Class Method Details

.from_response(resp) ⇒ Object

:nodoc:



27
28
29
30
31
# File 'lib/gcloud/pubsub/errors.rb', line 27

def self.from_response resp #:nodoc:
  new.tap do |e|
    e.response = resp
  end
end