diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-10-11 05:27:56 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-10-11 05:27:56 +0000 |
commit | 83033ce328a2ea19c90bcd6f937291f5ed0e1623 (patch) | |
tree | bf11210ba17d841d20f78a55a9458f013601b775 /lib/net/protocol.rb | |
parent | 14260932b444e36121fe8f84ad4a1fa65d5730b2 (diff) | |
download | ruby-83033ce328a2ea19c90bcd6f937291f5ed0e1623.tar.gz |
aamine
* lib/net/protocol.rb: 2nd arg for ProtocolError#initialize is optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index aaacc55f60..237c4a116a 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -261,7 +261,7 @@ module Net class ProtocolError - def initialize( msg, data ) + def initialize( msg, data = nil ) super msg @data = data end @@ -306,6 +306,7 @@ module Net end ReplyCode = Code.new( [], ProtoUnknownError ) + InformationCode = ReplyCode.mkchild( ProtoUnknownError ) SuccessCode = ReplyCode.mkchild( ProtoUnknownError ) ContinueCode = ReplyCode.mkchild( ProtoUnknownError ) ErrorCode = ReplyCode.mkchild( ProtocolError ) |