Class: Momento::Error::TransportDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/momento/error/transport_details.rb

Overview

A class to capture information specific to particular transport layers.

Examples:

# Information about the underlying GRPC error which
# caused a Momento error response.
puts response.error.transport_details.grpc.details

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grpc:) ⇒ TransportDetails

param grpc [GRPC::BadStatus]



15
16
17
# File 'lib/momento/error/transport_details.rb', line 15

def initialize(grpc:)
  @grpc = GrpcDetails.new(grpc)
end

Instance Attribute Details

#grpcMomento::Error::GrpcDetails (readonly)

Details specific to GRPC.



12
13
14
# File 'lib/momento/error/transport_details.rb', line 12

def grpc
  @grpc
end