PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 1#
 2#   irb/lc/error.rb - 
 3#   	$Release Version: 0.9.5$
 4#   	$Revision: 11708 $
 5#   	$Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
 6#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
 7#
 8# --
 9#
10#   
11#
12require "e2mmap"
13
14module IRB
15
16  # exceptions
17  extend Exception2MessageMapper
18  def_exception :UnrecognizedSwitch, "Unrecognized switch: %s"
19  def_exception :NotImplementedError, "Need to define `%s'"
20  def_exception :CantReturnToNormalMode, "Can't return to normal mode."
21  def_exception :IllegalParameter, "Illegal parameter(%s)."
22  def_exception :IrbAlreadyDead, "Irb is already dead."
23  def_exception :IrbSwitchedToCurrentThread, "Switched to current thread."
24  def_exception :NoSuchJob, "No such job(%s)."
25  def_exception :CantShiftToMultiIrbMode, "Can't shift to multi irb mode."
26  def_exception :CantChangeBinding, "Can't change binding to (%s)."
27  def_exception :UndefinedPromptMode, "Undefined prompt mode(%s)."
28
29end
30