I have an Exception type variable in Ruby. How can I set the value of attribute “message” of the exception variable?
Is there any method to set the attribute (like rb_attr_set()..)?
I have an Exception type variable in Ruby. How can I set the value
Share
I got the answer for above question myself. We can set the “message” attribute of Exception object as follows:
whereas current in VALUE type variable in which ruby string is stored..