ruby-ldap / ruby-net-ldap

Pure Ruby LDAP library
https://rubygems.org/gems/net-ldap
Other
399 stars 253 forks source link

Allow ConnectionRefusedError to be captured as Errno::ECONNREFUSED #368

Closed jwedoff closed 1 month ago

jwedoff commented 4 years ago

Modify exceptions to allow Net::LDAP::ConnectionRefusedError to be caught with Errno::ECONNREFUSED (allowing code to start using correct exception), while maintaining compatibility with code using Net::LDAP::ConnectionRefusedError.

Display deprecation warnings for code that attempts to catch Net::LDAP::ConnectionRefusedError, rather than any time a connection refused error is raised.

HarlemSquirrel commented 4 years ago

@jwedoff do we still need this after merging #366 ?

HarlemSquirrel commented 1 month ago

Closing as stale. Please open a new PR if there's something we missed. Thank you!