Sha256: 4a615d3ac0a2270c4c714119cf11f041cf316c37967ee16df4a92bd076bc001b

Contents?: true

Size: 518 Bytes

Versions: 6

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

module WineBouncer
  module Errors
    class UnconfiguredError < StandardError; end

    class OAuthUnauthorizedError < StandardError
      attr_reader :response
      def initialize(response)
        super(response.try(:description))
        @response = response
      end
    end

    class OAuthForbiddenError < StandardError
      attr_reader :response
      def initialize(response)
        super(response.try(:description))
        @response = response
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
privy_wine_bouncer-1.0.4.5 lib/wine_bouncer/errors.rb
wine_bouncer-1.0.4 lib/wine_bouncer/errors.rb
wine_bouncer-1.0.3 lib/wine_bouncer/errors.rb
wine_bouncer-1.0.2 lib/wine_bouncer/errors.rb
wine_bouncer-1.0.1 lib/wine_bouncer/errors.rb
wine_bouncer-1.0.0 lib/wine_bouncer/errors.rb