does raise work in Rgss2? for raising errors and exceptions?
The Law G14
Aug 31 2011, 06:08 PM
Yes, I checked the help file and raise still works in RGSS2, it's just no longer a reserved word like it was in its predecessor (RGSS). It's now just a built-in function according to the Help File. If you'd like to no more about the usage of "raise", I copied an excerpt out of the Help File:
Throws an exception. In the first format, throws the last exception again. In the second format, given a string argument, throws a RuntimeError exception with the given string as a message. In the third format, throws the exception if the argument is an exception object. In the last format, throws the exception specified in the first argument with the message given in the second argument.
Thrown exceptions can be trapped with a rescue clause in begin.
raise is not a reserved word in Ruby, but rather an built-in function.
Adrien.
Aug 31 2011, 06:35 PM
awesome thank you.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.