Project

General

Profile

Actions

Bug #18682

closed

doc: raise also accepts instances

Bug #18682: doc: raise also accepts instances

Added by akim2 (Akim Demaille) almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:108183]

Description

https://ruby-doc.org/core-3.1.1/Kernel.html#method-i-raise says

Otherwise, the first parameter should be an Exception class (or another object that returns an Exception object when sent an exception message).

Well, it can also be an instance of Exception, not just a class.

PS/ I've had to create a new account to create this issue, because I could not find how to get the 2FA code I needed to use my older account. I can recreate a new password (which I did not need), but I cannot get back the 2FA configuration.

Actions

Also available in: PDF Atom