File: error.rb

package info (click to toggle)
ruby-rack-oauth2 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ruby: 4,013; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 373 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module Rack
  module OAuth2
    class Client
      class Error < StandardError
        attr_accessor :status, :response
        def initialize(status, response)
          @status = status
          @response = response
          message = [response[:error], response[:error_description]].compact.join(' :: ')
          super message
        end
      end
    end
  end
end