Logo image
  • Introduction
  • Guides
  • Logo image
  • Bestiary
  • Honeybadger

StandardError

StandardError has not been discovered yet

Ruby's StandardError class

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

Exception

Enemies

Honeybadger

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

Join The E.C. Society

Join us on our quest to discover all of Ruby's Exceptional Creatures! Society members will receive new creatures as we discover them (we'll be adding more in the coming months). Oh, and you'll learn a lot about Ruby, too.

  • Guides

  • What are Ruby Exceptions?
  • Advanced Rescue and Raise
  • Advanced Exception Objects
  • Extending Ruby Exceptions
  • Bestiary

  • Exceptional Creatures
  • Exception
  • NoMethodError
  • TypeError
  • Honeybadger

  • Our Story
  • Plans/Pricing
  • Documentation
  • Contact

  • Email
  • Twitter
  • GitHub
Copyright © 2025 Honeybadger Industries LLC.
  • All Rights Reserved.
  • Artwork by Kaylin Wood