Skip to content

Commit c9d36cd

Browse files
author
Tatsuya Sato
committed
Redefine Net::LDAP::LdapError to support backward compatibility
1 parent b412ca0 commit c9d36cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/net/ldap/error.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
class Net::LDAP
2+
class LdapError < StandardError
3+
def message
4+
"Deprecation warning: Net::LDAP::LdapError is no longer used. Use Net::LDAP::Error or rescue one of it's subclasses. \n" + super
5+
end
6+
end
7+
28
class Error < StandardError; end
39

410
class AlreadyOpenedError < Error; end

0 commit comments

Comments
 (0)