/tools/Ruby/lib/ruby/1.8/irb/lc/error.rb
http://github.com/agross/netopenspace · Ruby · 30 lines · 14 code · 4 blank · 12 comment · 0 complexity · fde3292313bdad7df22089f2c6a90b30 MD5 · raw file
- #
- # irb/lc/error.rb -
- # $Release Version: 0.9.5$
- # $Revision: 11708 $
- # $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
- # by Keiju ISHITSUKA(keiju@ruby-lang.org)
- #
- # --
- #
- #
- #
- require "e2mmap"
- module IRB
- # exceptions
- extend Exception2MessageMapper
- def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
- def_exception :NotImplementedError, "Need to define `%s'"
- def_exception :CantReturnToNormalMode, "Can't return to normal mode."
- def_exception :IllegalParameter, "Illegal parameter(%s)."
- def_exception :IrbAlreadyDead, "Irb is already dead."
- def_exception :IrbSwitchedToCurrentThread, "Switched to current thread."
- def_exception :NoSuchJob, "No such job(%s)."
- def_exception :CantShiftToMultiIrbMode, "Can't shift to multi irb mode."
- def_exception :CantChangeBinding, "Can't change binding to (%s)."
- def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
- end