Changed error classes to inherit from StandardError instead of Exception.

This should make them easier to use with irb.
This commit is contained in:
blackhedd 2007-09-04 12:07:35 +00:00
parent 6e53144090
commit b828ff52cf
5 changed files with 7 additions and 4 deletions

View file

@ -33,7 +33,7 @@ module Net
module BER
class BerError < Exception; end
class BerError < StandardError; end
class BerIdentifiedString < String

View file

@ -261,7 +261,7 @@ module Net
class LDAP
class LdapError < Exception; end
class LdapError < StandardError; end
VERSION = "0.1.0"

View file

@ -31,7 +31,7 @@
module Net
class LdapPduError < Exception; end
class LdapPduError < StandardError; end
class LdapPdu

View file

@ -94,7 +94,7 @@ module Net
end
class SnmpPdu
class Error < Exception; end
class Error < StandardError; end
PduTypes = [
:get_request,