Sha256: 1b1f0cffe1012a4150ce38e5a91bb6a400b9a6295433db7de368ac532745ec52

Contents?: true

Size: 500 Bytes

Versions: 17

Compression:

Stored size: 500 Bytes

Contents

# typed: strict
# frozen_string_literal: true

require "nexus/invision/errors/client_error"
require "sorbet-runtime"

module Nexus
  module Invision
    module Errors
      class BadRequest < ClientError
        extend T::Sig

        sig { returns(String) }
        attr_reader :code

        sig { params(message: String, code: String, env: Faraday::Env).void }
        def initialize(message, code, env)
          super(message, env)
          @code = code
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
nexus-invision-1.11.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.10.2 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.10.1 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.10.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.9.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.8.1 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.8.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.7.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.6.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.5.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.4.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.3.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.2.1 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.2.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.1.0 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.0.1 lib/nexus/invision/errors/bad_request.rb
nexus-invision-1.0.0 lib/nexus/invision/errors/bad_request.rb