Sha256: 11077f7be35fbf9f224fcaaefbaa63ac1096c485ccb4b3d73ddbf98d431f6a67
Contents?: true
Size: 358 Bytes
Versions: 1
Compression:
Stored size: 358 Bytes
Contents
module Kadmin module Errors class Authorization < Kadmin::Error attr_reader :resource, :user, :reason def initialize(resource, user, reason) @resource = resource @user = user @reason = reason super("#{@user} is unauthorized to access #{@resource} => #{@reason}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kadmin-0.3.2 | lib/kadmin/errors/authorization.rb |