2001-04-30 21:38:21 +04:00
|
|
|
#
|
|
|
|
# irb/lc/error.rb -
|
2002-07-09 15:17:17 +04:00
|
|
|
# $Release Version: 0.9$
|
2001-04-30 21:38:21 +04:00
|
|
|
# $Revision$
|
|
|
|
# $Date$
|
|
|
|
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
|
|
|
|
#
|
|
|
|
# --
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
require "e2mmap"
|
|
|
|
|
|
|
|
module IRB
|
|
|
|
|
2001-05-03 12:56:49 +04:00
|
|
|
# exceptions
|
2001-04-30 21:38:21 +04:00
|
|
|
extend Exception2MessageMapper
|
|
|
|
def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
|
|
|
|
def_exception :NotImplementError, "Need to define `%s'"
|
|
|
|
def_exception :CantRetuenNormalMode, "Can't return normal mode."
|
|
|
|
def_exception :IllegalParameter, "Illegal parameter(%s)."
|
|
|
|
def_exception :IrbAlreadyDead, "Irb is already dead."
|
|
|
|
def_exception :IrbSwitchToCurrentThread, "Change to current thread."
|
|
|
|
def_exception :NoSuchJob, "No such job(%s)."
|
|
|
|
def_exception :CanNotGoMultiIrbMode, "Can't go multi irb mode."
|
|
|
|
def_exception :CanNotChangeBinding, "Can't change binding to (%s)."
|
|
|
|
def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
|
|
|
|
|
|
|
|
end
|
|
|
|
|