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.
Methods included from GetTextSupport
Constructor Details
#initialize(dn, reason = nil) ⇒ DistinguishedNameInvalid
Returns a new instance of DistinguishedNameInvalid.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/active_ldap/base.rb', line 110 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.
109 110 111 |
# File 'lib/active_ldap/base.rb', line 109 def dn @dn end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
109 110 111 |
# File 'lib/active_ldap/base.rb', line 109 def reason @reason end |