Skip to content

Commit

Permalink
Fix UncaughtThrowError
Browse files Browse the repository at this point in the history
UncaughtThrowError should subclass ArgumentError instead of
StandardError.

See https://github.com/ruby/ruby/blob/v2_2_0/NEWS#L72.
  • Loading branch information
tak1n committed May 26, 2015
1 parent 2d81952 commit 2ad0b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/common/exception.rb
Expand Up @@ -213,7 +213,7 @@ def to_s
end
end

class UncaughtThrowError < StandardError
class UncaughtThrowError < ArgumentError
end

class IndexError < StandardError
Expand Down

0 comments on commit 2ad0b7c

Please sign in to comment.