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