Exception: ActiveLdap::DistinguishedNameInvalid — activeldap - ActiveLdap

Exception: ActiveLdap::DistinguishedNameInvalid

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (DistinguishedNameInvalid) initialize(dn, reason = nil)

Returns a new instance of DistinguishedNameInvalid



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

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

- (Object) dn (readonly)

Returns the value of attribute dn



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

def dn
  @dn
end

- (Object) reason (readonly)

Returns the value of attribute reason



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

def reason
  @reason
end