Sha256: 732142a798928215373a665404d748d711a219a71c23a2811c116b1a114e5a2c

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

# typed: strict
require 'forwardable'

module ShotgridApiRuby
  class ShotgridCallError < StandardError
    extend T::Sig
    extend Forwardable

    sig { params(response: T.untyped, message: String).void }
    def initialize(response:, message:)
      @response = T.let(response, T.untyped)
      super(message)
    end

    sig { returns(T.untyped) }
    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.2.0.6 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.2.0.5 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.2.0.4 lib/shotgrid_api_ruby/shotgrid_call_error.rb
shotgrid_api_ruby-0.2.0.1 lib/shotgrid_api_ruby/shotgrid_call_error.rb