Sha256: 5e98d8e64506af2cc72a658565bf8bce47f4465defc1a675d7ab50d154cbc4e8

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

require 'forwardable'

module ShotgridApiRuby
  class ShotgridCallError < StandardError
    extend Forwardable

    def initialize(response:, message:)
      @response = response
      super(message)
    end

    attr_reader :response
    def_delegators :response, :status
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shotgrid_api_ruby-0.1.3.3 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.1.3.2 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.1.3.1 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.1.3 lib/shotgrid_api_ruby/shotgrid_call_error.rb