2008-12-18 08:09:26 -05:00
|
|
|
# -*- coding: utf-8 -*-
|
2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2009-03-05 22:56:38 -05:00
|
|
|
# irb/lc/ja/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
|
|
|
#
|
|
|
|
|
2012-12-13 00:22:30 -05:00
|
|
|
# :stopdoc:
|
2001-04-30 13:38:21 -04:00
|
|
|
module IRB
|
2019-11-24 15:38:09 -05:00
|
|
|
class UnrecognizedSwitch < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("スイッチ(#{val})が分りません")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class NotImplementedError < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("`#{val}'の定義が必要です")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class CantReturnToNormalMode < StandardError
|
|
|
|
def initialize
|
|
|
|
super("Normalモードに戻れません.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class IllegalParameter < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("パラメータ(#{val})が間違っています.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class IrbAlreadyDead < StandardError
|
|
|
|
def initialize
|
|
|
|
super("Irbは既に死んでいます.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class IrbSwitchedToCurrentThread < StandardError
|
|
|
|
def initialize
|
|
|
|
super("カレントスレッドに切り替わりました.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class NoSuchJob < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("そのようなジョブ(#{val})はありません.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class CantShiftToMultiIrbMode < StandardError
|
|
|
|
def initialize
|
|
|
|
super("multi-irb modeに移れません.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class CantChangeBinding < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("バインディング(#{val})に変更できません.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class UndefinedPromptMode < StandardError
|
|
|
|
def initialize(val)
|
|
|
|
super("プロンプトモード(#{val})は定義されていません.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
class IllegalRCGenerator < StandardError
|
|
|
|
def initialize
|
|
|
|
super("RC_NAME_GENERATORが正しく定義されていません.")
|
|
|
|
end
|
|
|
|
end
|
2001-04-30 13:38:21 -04:00
|
|
|
end
|
2012-12-13 00:22:30 -05:00
|
|
|
# :startdoc:
|
2008-12-18 08:09:26 -05:00
|
|
|
# vim:fileencoding=utf-8
|