Sha256: fae0824373157eba80e9428be5f82f2f0b877efed03bd61d4ad2ce03ac4274fa

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

require_relative "policy_decision_point/version"
require_relative "policy_decision_point/pdp"

module PolicyDecisionPoint
  ##
  # Represents an authentication attempt failure.
  class AuthnError < StandardError
    def initialize(e = nil)
      super e
        set_backtrace e.backtrace if e
    end
  end

  ##
  # Represents an authorization attempt failure.
  class AuthzError < StandardError
    def initialize(e = nil)
      super e
        set_backtrace e.backtrace if e
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
policy_decision_point-0.2.0 lib/policy_decision_point.rb
policy_decision_point-0.1.0 lib/policy_decision_point.rb