EC
πŸ’Ž

Ruby Exceptions

Ruby 3.x60 codes

Built-in exception hierarchy, Errno namespace, and stdlib errors

Showing 60 of 60 errors
CodeMessage
ExceptionBase class for all Ruby exceptions→
StandardErrorBase class for most rescuable errors→
RuntimeErrorGeneric runtime error→
NoMethodErrorUndefined method called on object→
ArgumentErrorWrong number or type of arguments→
TypeErrorOperation applied to wrong type→
NameErrorUndefined name or constant→
LoadErrorFile or gem could not be loaded→
SyntaxErrorRuby code has invalid syntax→
ScriptErrorNon-rescuable script-level error→
NotImplementedErrorFeature not implemented on this platform→
ZeroDivisionErrorInteger division by zero→
RangeErrorNumeric value out of valid range→
FloatDomainErrorFloat value outside mathematical domain→
Math::DomainErrorMath function input outside its domain→
IndexErrorIndex out of range or invalid→
KeyErrorHash key not found→
StopIterationExternal iterator has no more values→
IOErrorIO operation failed on closed or invalid stream→
EOFErrorEnd of file reached unexpectedly→
FrozenErrorAttempt to modify a frozen object→
EncodingErrorString encoding problem→
Encoding::InvalidByteSequenceErrorByte sequence is invalid in source encoding→
Encoding::UndefinedConversionErrorCharacter has no mapping in target encoding→
Encoding::CompatibilityErrorEncodings are incompatible for concatenation→
Encoding::ConverterNotFoundErrorNo converter available between encodings→
RegexpErrorInvalid regular expression→
LocalJumpErrorInvalid use of break, return, or next outside block→
FiberErrorInvalid Fiber operation→
ThreadErrorInvalid Thread or Mutex operation→
NoMemoryErrorMemory allocation failed→
SystemStackErrorStack overflow from infinite recursion→
SystemExitProgram exit requested via exit or exit!β†’
SignalExceptionOS signal received by the process→
InterruptCtrl+C pressed — keyboard interrupt→
SystemCallErrorOS system call returned an error→
UncaughtThrowErrorthrow called with no matching catch→
ClosedQueueErrorOperation on a closed Queue→
Errno::ENOENTNo such file or directory→
Errno::EACCESPermission denied→
Errno::EEXISTFile or directory already exists→
Errno::ENOTEMPTYDirectory not empty→
Errno::ENOTDIRPath component is not a directory→
Errno::ECONNREFUSEDConnection refused by remote host→
Errno::ECONNRESETConnection reset by peer→
Errno::ETIMEDOUTConnection or operation timed out→
Errno::EADDRINUSEAddress already in use→
Errno::EPIPEBroken pipe — reader has closed→
SocketErrorSocket or hostname resolution failure→
OpenSSL::SSL::SSLErrorTLS/SSL handshake or certificate failure→
Net::HTTPErrorHTTP response indicated an error→
OpenURI::HTTPErrorHTTP error from OpenURI::open→
Timeout::ErrorOperation exceeded the time limit→
JSON::ParserErrorInvalid JSON input→
CSV::MalformedCSVErrorCSV input is not valid→
URI::InvalidURIErrorString is not a valid URI→
FrozenErrorCannot modify a frozen object→
NoMatchingPatternErrorPattern matching found no match (Ruby 3.x)β†’
FiberErrorInvalid Fiber operation→
Encoding::ConversionErrorString encoding conversion failed→