Ruby Programming/Reference/Objects/Exception

From Wikibooks, open books for an open world
< Ruby Programming‎ | Reference‎ | Objects
Jump to navigation Jump to search

Exception is the superclass for exceptions

Instance Methods


  • Returns the backtrace information (from where exception occurred) as an array of strings.


  • Returns a clone of the exception object. This method is used by raise method.


  • Returns the exception message.