mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
14260932b4
commit
83033ce328
3 changed files with 201 additions and 165 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue