2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2001-04-30 13:38:21 -04:00
|
|
|
#
|
2009-03-05 22:56:38 -05:00
|
|
|
# irb/lc/error.rb -
|
2009-07-07 07:36:20 -04:00
|
|
|
# $Release Version: 0.9.6$
|
2001-04-30 13:38:21 -04:00
|
|
|
# $Revision$
|
2005-04-13 11:27:09 -04:00
|
|
|
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
|
2001-04-30 13:38:21 -04:00
|
|
|
#
|
|
|
|
# --
|
|
|
|
#
|
2009-03-05 22:56:38 -05:00
|
|
|
#
|
2001-04-30 13:38:21 -04:00
|
|
|
#
|
|
|
|
require "e2mmap"
|
|
|
|
|
2012-12-13 00:22:30 -05:00
|
|
|
# :stopdoc:
|
2001-04-30 13:38:21 -04:00
|
|
|
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"
|
2003-03-23 12:58:57 -05:00
|
|
|
def_exception :NotImplementedError, "Need to define `%s'"
|
2003-02-07 14:00:21 -05:00
|
|
|
def_exception :CantReturnToNormalMode, "Can't return to normal mode."
|
2007-12-27 03:58:03 -05:00
|
|
|
def_exception :IllegalParameter, "Invalid parameter(%s)."
|
2001-04-30 13:38:21 -04:00
|
|
|
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)."
|
2012-12-25 07:16:10 -05:00
|
|
|
def_exception :IllegalRCGenerator, 'Define illegal RC_NAME_GENERATOR.'
|
2001-04-30 13:38:21 -04:00
|
|
|
|
|
|
|
end
|
2012-12-13 00:22:30 -05:00
|
|
|
# :startdoc:
|