summaryrefslogtreecommitdiffhomepage
path: root/mrblib/error.rb
blob: 5d49ec1e48a9819de213a4603ae32a67ea55b451 (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
##
# Exception
#
# ISO 15.2.22
class Exception

  ##
  # Raise an exception.
  #
  # ISO 15.2.22.4.1
  def self.exception(*args, &block)
    self.new(*args, &block)
  end
end

# ISO 15.2.37
class ScriptError < Exception
end

# ISO 15.2.38
class SyntaxError < ScriptError
end

class NotImplementedError < ScriptError
end