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")

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.

···

On Sun, Jan 15, 2012 at 5:50 PM, Ralph Shnelvar <ralphs@dos32.com> wrote:

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