Exception: ShotgridApiRuby::ShotgridCallError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable, T::Sig
Defined in:
lib/shotgrid_api_ruby/shotgrid_call_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response:, message:) ⇒ ShotgridCallError

Returns a new instance of ShotgridCallError.


10
11
12
13
# File 'lib/shotgrid_api_ruby/shotgrid_call_error.rb', line 10

def initialize(response:, message:)
  @response = T.let(response, T.untyped)
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.


16
17
18
# File 'lib/shotgrid_api_ruby/shotgrid_call_error.rb', line 16

def response
  @response
end