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.



139
140
141
142
143
144
145
146
147
148
# File 'lib/active_ldap/base.rb', line 139

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.



138
139
140
# File 'lib/active_ldap/base.rb', line 138

def dn
  @dn
end

#reasonObject (readonly)

Returns the value of attribute reason.



138
139
140
# File 'lib/active_ldap/base.rb', line 138

def reason
  @reason
end