Sha256: 3e5bf8e89070f8a07c32cdb2e3546fa01c1ed1c99fcaf9ca1a0205ea0c7afdce
Contents?: true
Size: 648 Bytes
Versions: 2
Compression:
Stored size: 648 Bytes
Contents
module OpenIDConnect class Exception < StandardError; end class HttpError < Exception attr_accessor :status, :response def initialize(status, message, response = nil) @status = status @message = message @response = response end end class BadRequest < HttpError def initialize(message, response = nil) super 400, message, response end end class Unauthorized < HttpError def initialize(message, response = nil) super 401, message, response end end class Forbidden < HttpError def initialize(message, response = nil) super 403, message, response end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
openid_connect-0.0.4 | lib/openid_connect/exception.rb |
openid_connect-0.0.3 | lib/openid_connect/exception.rb |