This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Ruby Exceptions!
Hierarch and usage
NoMemoryError!
NoMemoryError
Raised when memory
allocation fails.
ScriptError!
ScriptError
Superclass for errors raised when a script can
not be executed
ScriptError Hierarch
LoadError
Raised when a file required fails to load
NotImplementedError
Raised when a feature is not
implemented on the current platform
SyntaxError
Raised when encountering Ruby code with an invalid
syntax
SignalException!SignalException!
Raised when a signal is received
SignalException
SignalException Hierarch
Interrupt
Raised with the interrupt signal is received, typically
because the user pressed on Control-C
StandardError!
StandardError
The most standard error types are subclasses of StandardError