Is there a difference between these two kinds of raise

Is there a semantic difference bewteen
raise MySpecialError, “My Message”
and
raise MySpecialError.new(“My Message”)

On Sun, Jan 15, 2012 at 5:50 PM, Ralph S. [email protected]
wrote:

Is there a semantic difference bewteen
raise MySpecialError, “My Message”
and
raise MySpecialError.new(“My Message”)

No difference (as far as I know).

raise MySpecialError, “My Message” # ** See note
raise MySpecialError.new(“My Message”)

and

raise MySpecialError.exception(“My Message”)

** This sends/calls “exception” method/message on MySpecialError
passing the String “My Message” as its argument.

Abinoam Jr.