Sha256: 4c0897c36d535c7e4e3a7b7a07b9b1cf8d3f92bea3e85ddd96d7e48d7819434e

Contents?: true

Size: 487 Bytes

Versions: 2

Compression:

Stored size: 487 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
wine_bouncer-0.5.1 lib/wine_bouncer/errors.rb
wine_bouncer-0.5.0 lib/wine_bouncer/errors.rb