Exception: Strelka::RequestError

Inherits:
Error
  • Object
show all
Defined in:
lib/strelka/exceptions.rb

Overview

An exception that's raised when there's a problem with a Request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, message, *args) ⇒ RequestError

Create a new RequestError for the specified request object.



15
16
17
18
# File 'lib/strelka/exceptions.rb', line 15

def initialize( request, message, *args )
  @request = request
  super( message, *args )
end

Instance Attribute Details

#requestObject (readonly)

The request that caused the exception



21
22
23
# File 'lib/strelka/exceptions.rb', line 21

def request
  @request
end