mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
delete duplicate definition of Exception.exception
It overwrote the original definition in src/error.c, line 446.
This commit is contained in:
@@ -1,18 +1,3 @@
|
||||
##
|
||||
# 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.24
|
||||
class ArgumentError < StandardError
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user