1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/irb/lc/error.rb
knu e9a0c8701b * lib/irb/context.rb, lib/irb/multi-irb.rb, lib/irb/workspace.rb,
lib/irb/lc/error.rb, lib/irb/lc/help-message,
  lib/irb/lc/ja/error.rb, lib/shell/command-processor.rb,
  lib/shell/error.rb, lib/shell/filter.rb: Fix typos and
  grammos. [approved by: keiju]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-02-07 19:04:51 +00:00

30 lines
869 B
Ruby

#
# irb/lc/error.rb -
# $Release Version: 0.7.3$
# $Revision$
# $Date$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
# --
#
#
#
require "e2mmap"
module IRB
# exceptions
extend Exception2MessageMapper
def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
def_exception :NotImplementError, "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