EC
errcodes.dev
HTTP
PostgreSQL
Linux
Python
Docker
21 languages Β· 7,377+ codes
errcodes.dev
/
Ruby
π
Ruby Exceptions
Ruby 3.x
60 codes
Built-in exception hierarchy, Errno namespace, and stdlib errors
All severities
FATAL
ERROR
INFO
WARNING
All tiers
Common
Notable
Critical
Showing
60
of
60
errors
Code
Message
Severity
Tier
Exception
Base class for all Ruby exceptions
FATAL
Common
β
StandardError
Base class for most rescuable errors
ERROR
Notable
β
RuntimeError
Generic runtime error
ERROR
Notable
β
NoMethodError
Undefined method called on object
FATAL
Common
β
ArgumentError
Wrong number or type of arguments
ERROR
Notable
β
TypeError
Operation applied to wrong type
ERROR
Notable
β
NameError
Undefined name or constant
ERROR
Notable
β
LoadError
File or gem could not be loaded
FATAL
Common
β
SyntaxError
Ruby code has invalid syntax
FATAL
Common
β
ScriptError
Non-rescuable script-level error
FATAL
Common
β
NotImplementedError
Feature not implemented on this platform
ERROR
Notable
β
ZeroDivisionError
Integer division by zero
ERROR
Notable
β
RangeError
Numeric value out of valid range
ERROR
Notable
β
FloatDomainError
Float value outside mathematical domain
ERROR
Notable
β
Math::DomainError
Math function input outside its domain
ERROR
Notable
β
IndexError
Index out of range or invalid
ERROR
Notable
β
KeyError
Hash key not found
ERROR
Notable
β
StopIteration
External iterator has no more values
INFO
Critical
β
IOError
IO operation failed on closed or invalid stream
ERROR
Notable
β
EOFError
End of file reached unexpectedly
WARNING
Critical
β
FrozenError
Attempt to modify a frozen object
ERROR
Notable
β
EncodingError
String encoding problem
ERROR
Notable
β
Encoding::InvalidByteSequenceError
Byte sequence is invalid in source encoding
ERROR
Notable
β
Encoding::UndefinedConversionError
Character has no mapping in target encoding
ERROR
Notable
β
Encoding::CompatibilityError
Encodings are incompatible for concatenation
ERROR
Notable
β
Encoding::ConverterNotFoundError
No converter available between encodings
ERROR
Critical
β
RegexpError
Invalid regular expression
ERROR
Notable
β
LocalJumpError
Invalid use of break, return, or next outside block
ERROR
Notable
β
FiberError
Invalid Fiber operation
ERROR
Notable
β
ThreadError
Invalid Thread or Mutex operation
ERROR
Notable
β
NoMemoryError
Memory allocation failed
FATAL
Common
β
SystemStackError
Stack overflow from infinite recursion
FATAL
Common
β
SystemExit
Program exit requested via exit or exit!
INFO
Critical
β
SignalException
OS signal received by the process
FATAL
Common
β
Interrupt
Ctrl+C pressed β keyboard interrupt
FATAL
Common
β
SystemCallError
OS system call returned an error
ERROR
Notable
β
UncaughtThrowError
throw called with no matching catch
ERROR
Notable
β
ClosedQueueError
Operation on a closed Queue
ERROR
Notable
β
Errno::ENOENT
No such file or directory
ERROR
Notable
β
Errno::EACCES
Permission denied
ERROR
Notable
β
Errno::EEXIST
File or directory already exists
WARNING
Critical
β
Errno::ENOTEMPTY
Directory not empty
WARNING
Critical
β
Errno::ENOTDIR
Path component is not a directory
ERROR
Notable
β
Errno::ECONNREFUSED
Connection refused by remote host
ERROR
Notable
β
Errno::ECONNRESET
Connection reset by peer
ERROR
Notable
β
Errno::ETIMEDOUT
Connection or operation timed out
ERROR
Notable
β
Errno::EADDRINUSE
Address already in use
ERROR
Notable
β
Errno::EPIPE
Broken pipe β reader has closed
WARNING
Critical
β
SocketError
Socket or hostname resolution failure
ERROR
Notable
β
OpenSSL::SSL::SSLError
TLS/SSL handshake or certificate failure
ERROR
Notable
β
Net::HTTPError
HTTP response indicated an error
ERROR
Notable
β
OpenURI::HTTPError
HTTP error from OpenURI::open
ERROR
Notable
β
Timeout::Error
Operation exceeded the time limit
ERROR
Notable
β
JSON::ParserError
Invalid JSON input
ERROR
Notable
β
CSV::MalformedCSVError
CSV input is not valid
ERROR
Notable
β
URI::InvalidURIError
String is not a valid URI
ERROR
Notable
β
FrozenError
Cannot modify a frozen object
ERROR
Common
β
NoMatchingPatternError
Pattern matching found no match (Ruby 3.x)
ERROR
Common
β
FiberError
Invalid Fiber operation
ERROR
Notable
β
Encoding::ConversionError
String encoding conversion failed
ERROR
Common
β