Exception: ActiveLdap::DistinguishedNameInvalid
- Defined in:
- lib/active_ldap/base.rb
Instance Attribute Summary collapse
-
#dn ⇒ Object
readonly
Returns the value of attribute dn.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(dn, reason = nil) ⇒ DistinguishedNameInvalid
constructor
A new instance of DistinguishedNameInvalid.
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 = "#{@dn} is invalid distinguished name (dn)" << ": #{@reason}"if @reason super() end |
Instance Attribute Details
#dn ⇒ Object (readonly)
Returns the value of attribute dn.
107 108 109 |
# File 'lib/active_ldap/base.rb', line 107 def dn @dn end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
107 108 109 |
# File 'lib/active_ldap/base.rb', line 107 def reason @reason end |