StandardError
StandardError has not been discovered yet
The most standard error types are subclasses of StandardError. A rescue clause without an explicit Exception class will rescue all StandardErrors (and only those).
def foo raise "Oups" end foo rescue "Hello" #=> "Hello"
On the other hand:
require 'does/not/exist' rescue "Hi"
raises the exception:
LoadError: no such file to load -- does/not/exist
Superclass
Enemies
Children
ArgumentError
DBMError
EncodingError
FiberError
Fiddle::DLError
GDBMError
IOError
IndexError
LocalJumpError
Math::DomainError
NameError
OpenSSL::OpenSSLError
RangeError
RegexpError
RuntimeError
SDBMError
SocketError
StringScanner::Error
SystemCallError
ThreadError
TypeError
ZeroDivisionError
Zlib::Error
Gem::Package::TarReader::UnexpectedEOF
Gem::Package::TarWriter::FileOverflow
Gem::Resolver::Molinillo::ResolverError
GetoptLong::Error
Net::FTPError
Net::HTTPBadResponse
Net::HTTPHeaderSyntaxError
Net::IMAP::Error
Net::ProtocolError
Object::ParseError
OpenURI::HTTPError
PStore::Error
RSS::Error
Racc::ParseError
Resolv::DNS::DecodeError
Resolv::DNS::EncodeError
Resolv::DNS::Requester::RequestError
Resolv::ResolvError
Sync_m::Err
TSort::Cyclic
URI::Error
Vector::ZeroVectorError
WEBrick::AccessLog::AccessLogError
WEBrick::HTTPServlet::HTTPServletError
WEBrick::HTTPStatus::EOFError
WEBrick::HTTPStatus::Status
WEBrick::ServerError
WeakRef::RefError