Exception: Blitz::Curl::Error::Step

Inherits:
Region show all
Defined in:
lib/blitz/curl/error.rb

Overview

This exception is raised when a particular step fails in some ways

Direct Known Subclasses

Connect, Status, Timeout

Instance Attribute Summary collapse

Attributes inherited from Region

#region

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ Step

:nodoc:



64
65
66
67
68
# File 'lib/blitz/curl/error.rb', line 64

def initialize json # :nodoc:
    @step = json['step']
    @steps = json['steps'].map { |s| Sprint::Step.new s }
    super
end

Instance Attribute Details

#stepObject (readonly)

The step index where the error occurred



57
58
59
# File 'lib/blitz/curl/error.rb', line 57

def step
  @step
end

#stepsObject (readonly)

An array of Blitz::Curl::Sprint::Step objects each containing requests and [potentially] responses. Depending on which step of the transaction the failure was, this array could potentially be empty



62
63
64
# File 'lib/blitz/curl/error.rb', line 62

def steps
  @steps
end