Exception: ActiveLdap::DistinguishedNameInvalid

Inherits:
Error
  • Object
show all
Defined in:
lib/active_ldap/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GetTextSupport

included

Constructor Details

#initialize(dn, reason = nil) ⇒ DistinguishedNameInvalid

Returns a new instance of DistinguishedNameInvalid.



110
111
112
113
114
115
116
117
118
119
# File 'lib/active_ldap/base.rb', line 110

def initialize(dn, reason=nil)
  @dn = dn
  @reason = reason
  if @reason
    message = _("%s is invalid distinguished name (DN): %s") % [@dn, @reason]
  else
    message = _("%s is invalid distinguished name (DN)") % @dn
  end
  super(message)
end

Instance Attribute Details

#dnObject (readonly)

Returns the value of attribute dn.



109
110
111
# File 'lib/active_ldap/base.rb', line 109

def dn
  @dn
end

#reasonObject (readonly)

Returns the value of attribute reason.



109
110
111
# File 'lib/active_ldap/base.rb', line 109

def reason
  @reason
end