mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update NotImplementError to NotImplementedError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0b7b4c775d
commit
e5282ef182
6 changed files with 6 additions and 11 deletions
|
@ -2302,10 +2302,10 @@ end
|
||||||
|
|
||||||
module TkTreatItemFont
|
module TkTreatItemFont
|
||||||
def __conf_cmd(idx)
|
def __conf_cmd(idx)
|
||||||
raise NotImplementError, "need to define `__conf_cmd'"
|
raise NotImplementedError, "need to define `__conf_cmd'"
|
||||||
end
|
end
|
||||||
def __item_pathname(tagOrId)
|
def __item_pathname(tagOrId)
|
||||||
raise NotImplementError, "need to define `__item_pathname'"
|
raise NotImplementedError, "need to define `__item_pathname'"
|
||||||
end
|
end
|
||||||
private :__conf_cmd, :__item_pathname
|
private :__conf_cmd, :__item_pathname
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Delegator
|
||||||
end
|
end
|
||||||
|
|
||||||
def __getobj__
|
def __getobj__
|
||||||
raise NotImplementError, "need to define `__getobj__'"
|
raise NotImplementedError, "need to define `__getobj__'"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -28,7 +28,7 @@ module IRB
|
||||||
attr_accessor :prompt
|
attr_accessor :prompt
|
||||||
|
|
||||||
def gets
|
def gets
|
||||||
IRB.fail NotImplementError, "gets"
|
IRB.fail NotImplementedError, "gets"
|
||||||
end
|
end
|
||||||
public :gets
|
public :gets
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ module IRB
|
||||||
# exceptions
|
# exceptions
|
||||||
extend Exception2MessageMapper
|
extend Exception2MessageMapper
|
||||||
def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
|
def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
|
||||||
def_exception :NotImplementError, "Need to define `%s'"
|
def_exception :NotImplementedError, "Need to define `%s'"
|
||||||
def_exception :CantReturnToNormalMode, "Can't return to normal mode."
|
def_exception :CantReturnToNormalMode, "Can't return to normal mode."
|
||||||
def_exception :IllegalParameter, "Illegal parameter(%s)."
|
def_exception :IllegalParameter, "Illegal parameter(%s)."
|
||||||
def_exception :IrbAlreadyDead, "Irb is already dead."
|
def_exception :IrbAlreadyDead, "Irb is already dead."
|
||||||
|
|
|
@ -15,7 +15,7 @@ module IRB
|
||||||
# exceptions
|
# exceptions
|
||||||
extend Exception2MessageMapper
|
extend Exception2MessageMapper
|
||||||
def_exception :UnrecognizedSwitch, '$B%9%$%C%A(B(%s)$B$,J,$j$^$;$s(B'
|
def_exception :UnrecognizedSwitch, '$B%9%$%C%A(B(%s)$B$,J,$j$^$;$s(B'
|
||||||
def_exception :NotImplementError, '`%s\'$B$NDj5A$,I,MW$G$9(B'
|
def_exception :NotImplementedError, '`%s\'$B$NDj5A$,I,MW$G$9(B'
|
||||||
def_exception :CantReturnToNormalMode, 'Normal$B%b!<%I$KLa$l$^$;$s(B.'
|
def_exception :CantReturnToNormalMode, 'Normal$B%b!<%I$KLa$l$^$;$s(B.'
|
||||||
def_exception :IllegalParameter, '$B%Q%i%a!<%?(B(%s)$B$,4V0c$C$F$$$^$9(B.'
|
def_exception :IllegalParameter, '$B%Q%i%a!<%?(B(%s)$B$,4V0c$C$F$$$^$9(B.'
|
||||||
def_exception :IrbAlreadyDead, 'Irb$B$O4{$K;`$s$G$$$^$9(B.'
|
def_exception :IrbAlreadyDead, 'Irb$B$O4{$K;`$s$G$$$^$9(B.'
|
||||||
|
|
|
@ -13,11 +13,6 @@
|
||||||
# $Id$
|
# $Id$
|
||||||
#
|
#
|
||||||
|
|
||||||
unless defined? NotImplementedError then
|
|
||||||
NotImplementedError = NotImplementError
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
module Racc
|
module Racc
|
||||||
class ParseError < StandardError; end
|
class ParseError < StandardError; end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue