Sha256: 60f8102b85eafc4757eb7ee3c60a4a546432237122226c88e4b12b745b22524c

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

require 'triad'
module Surrounded
  module Context
    class InvalidRole < ::Triad::ItemNotPresent; end
    class InvalidRoleType < ::StandardError
      unless method_defined?(:cause)
        def initialize(msg=nil)
          super
          @cause = $!
        end
        attr_reader :cause
      end
    end
    class AccessError < ::StandardError; end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
surrounded-0.9.9 lib/surrounded/context_errors.rb
surrounded-0.9.8 lib/surrounded/context_errors.rb
surrounded-0.9.7 lib/surrounded/context_errors.rb
surrounded-0.9.6 lib/surrounded/context_errors.rb
surrounded-0.9.5 lib/surrounded/context_errors.rb