Exception: RuntimeError
- Inherits:
-
StandardError
- Object
- Exception
- StandardError
- RuntimeError
- Defined in:
- error.c,
error.c
Overview
A generic error class raised when an invalid operation is attempted. Kernel#raise will raise a RuntimeError if no Exception class is specified.
raise "ouch"
raises the exception:
RuntimeError: ouch
Direct Known Subclasses
Method Summary
Methods inherited from Exception
#==, #backtrace, #backtrace_locations, #cause, #exception, exception, #full_message, #initialize, #inspect, #message, #set_backtrace, #to_s, to_tty?
Constructor Details
This class inherits a constructor from Exception