summaryrefslogtreecommitdiff
path: root/lib/irb/lc/ja/error.rb
blob: 31ebb3b5f0adf680daba9b6ffad0108c8b672e9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- coding: utf-8 -*-
# frozen_string_literal: false
#   irb/lc/ja/error.rb -
#   	$Release Version: 0.9.6$
#   	$Revision$
#   	by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
#
#

# :stopdoc:
module IRB
  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
end
# :startdoc:
# vim:fileencoding=utf-8