Skip to content

Commit b828ff5

Browse files
author
blackhedd
committed
Changed error classes to inherit from StandardError instead of Exception.
This should make them easier to use with irb.
1 parent 6e53144 commit b828ff5

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

ChangeLog

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
for the patch.
4343
* Applied an additional patch from Kouhei.
4444
* Allowed comma in filter strings, suggested by Kouhei.
45+
* 04Sep07, Changed four error classes to inherit from StandardError rather
46+
Exception, in order to be friendlier to irb. Suggested by Kouhei.
47+
4548

4649
== Net::LDAP 0.0.4: August 15, 2006
4750
* Undeprecated Net::LDAP#modify. Thanks to Justin Forder for

lib/net/ber.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module Net
3333

3434
module BER
3535

36-
class BerError < Exception; end
36+
class BerError < StandardError; end
3737

3838

3939
class BerIdentifiedString < String

lib/net/ldap.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ module Net
261261

262262
class LDAP
263263

264-
class LdapError < Exception; end
264+
class LdapError < StandardError; end
265265

266266
VERSION = "0.1.0"
267267

lib/net/ldap/pdu.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
module Net
3232

3333

34-
class LdapPduError < Exception; end
34+
class LdapPduError < StandardError; end
3535

3636

3737
class LdapPdu

lib/net/snmp.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def to_ber
9494
end
9595

9696
class SnmpPdu
97-
class Error < Exception; end
97+
class Error < StandardError; end
9898

9999
PduTypes = [
100100
:get_request,

0 commit comments

Comments
 (0)