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

#initialize(dn, reason = nil) ⇒ DistinguishedNameInvalid

Returns a new instance of DistinguishedNameInvalid.



108
109
110
111
112
113
114
# File 'lib/active_ldap/base.rb', line 108

def initialize(dn, reason=nil)
  @dn = dn
  @reason = reason
  message = "#{@dn} is invalid distinguished name (dn)"
  message << ": #{@reason}"if @reason
  super(message)
end

Instance Attribute Details

#dnObject (readonly)

Returns the value of attribute dn.



107
108
109
# File 'lib/active_ldap/base.rb', line 107

def dn
  @dn
end

#reasonObject (readonly)

Returns the value of attribute reason.



107
108
109
# File 'lib/active_ldap/base.rb', line 107

def reason
  @reason
end