Changed error classes to inherit from StandardError instead of Exception.
This should make them easier to use with irb.
This commit is contained in:
parent
6e53144090
commit
b828ff52cf
|
@ -42,6 +42,9 @@
|
||||||
for the patch.
|
for the patch.
|
||||||
* Applied an additional patch from Kouhei.
|
* Applied an additional patch from Kouhei.
|
||||||
* Allowed comma in filter strings, suggested by Kouhei.
|
* Allowed comma in filter strings, suggested by Kouhei.
|
||||||
|
* 04Sep07, Changed four error classes to inherit from StandardError rather
|
||||||
|
Exception, in order to be friendlier to irb. Suggested by Kouhei.
|
||||||
|
|
||||||
|
|
||||||
== Net::LDAP 0.0.4: August 15, 2006
|
== Net::LDAP 0.0.4: August 15, 2006
|
||||||
* Undeprecated Net::LDAP#modify. Thanks to Justin Forder for
|
* Undeprecated Net::LDAP#modify. Thanks to Justin Forder for
|
||||||
|
|
|
@ -33,7 +33,7 @@ module Net
|
||||||
|
|
||||||
module BER
|
module BER
|
||||||
|
|
||||||
class BerError < Exception; end
|
class BerError < StandardError; end
|
||||||
|
|
||||||
|
|
||||||
class BerIdentifiedString < String
|
class BerIdentifiedString < String
|
||||||
|
|
|
@ -261,7 +261,7 @@ module Net
|
||||||
|
|
||||||
class LDAP
|
class LDAP
|
||||||
|
|
||||||
class LdapError < Exception; end
|
class LdapError < StandardError; end
|
||||||
|
|
||||||
VERSION = "0.1.0"
|
VERSION = "0.1.0"
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
module Net
|
module Net
|
||||||
|
|
||||||
|
|
||||||
class LdapPduError < Exception; end
|
class LdapPduError < StandardError; end
|
||||||
|
|
||||||
|
|
||||||
class LdapPdu
|
class LdapPdu
|
||||||
|
|
|
@ -94,7 +94,7 @@ module Net
|
||||||
end
|
end
|
||||||
|
|
||||||
class SnmpPdu
|
class SnmpPdu
|
||||||
class Error < Exception; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
PduTypes = [
|
PduTypes = [
|
||||||
:get_request,
|
:get_request,
|
||||||
|
|
Loading…
Reference in a new issue