blob: b8a7fe5a0e4ee0ea3b6c2c61769b73219fd410de (
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
73
|
# frozen_string_literal: false
#
# irb/lc/error.rb -
# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA([email protected])
#
# --
#
#
#
module IRB
# :stopdoc:
class UnrecognizedSwitch < StandardError
def initialize(val)
super("Unrecognized switch: #{val}")
end
end
class NotImplementedError < StandardError
def initialize(val)
super("Need to define `#{val}'")
end
end
class CantReturnToNormalMode < StandardError
def initialize
super("Can't return to normal mode.")
end
end
class IllegalParameter < StandardError
def initialize(val)
super("Invalid parameter(#{val}).")
end
end
class IrbAlreadyDead < StandardError
def initialize
super("Irb is already dead.")
end
end
class IrbSwitchedToCurrentThread < StandardError
def initialize
super("Switched to current thread.")
end
end
class NoSuchJob < StandardError
def initialize(val)
super("No such job(#{val}).")
end
end
class CantShiftToMultiIrbMode < StandardError
def initialize
super("Can't shift to multi irb mode.")
end
end
class CantChangeBinding < StandardError
def initialize(val)
super("Can't change binding to (#{val}).")
end
end
class UndefinedPromptMode < StandardError
def initialize(val)
super("Undefined prompt mode(#{val}).")
end
end
class IllegalRCGenerator < StandardError
def initialize
super("Define illegal RC_NAME_GENERATOR.")
end
end
# :startdoc:
end
|