summaryrefslogtreecommitdiff
path: root/lib/net/protocol.rb
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-11 05:27:56 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-10-11 05:27:56 +0000
commit83033ce328a2ea19c90bcd6f937291f5ed0e1623 (patch)
treebf11210ba17d841d20f78a55a9458f013601b775 /lib/net/protocol.rb
parent14260932b444e36121fe8f84ad4a1fa65d5730b2 (diff)
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.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index aaacc55..237c4a1 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 )