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
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 = _("%s is invalid distinguished name (DN): %s") % [@dn, @reason] else = _("%s is invalid distinguished name (DN)") % @dn end super() end |
Instance Attribute Details
#dn ⇒ Object (readonly)
Returns the value of attribute dn
138 139 140 |
# File 'lib/active_ldap/base.rb', line 138 def dn @dn end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
138 139 140 |
# File 'lib/active_ldap/base.rb', line 138 def reason @reason end |