The ancester of the all exceptions.
Object
exception([error_message = ""])
new([error_message = ""])
Creates a new exception object. The error_message string can be supplied as the optional argument. The default exception handler at top leve, will show this error_message.
exception
is used internally by
raise
.
backtrace
Returns backtrace information as the array of the strings in the following format.
"#{sourcefile}:#{sourceline}:in `#{method}'"
"#{sourcefile}:#{sourceline}"
exception
Return self. This method is used internally by raise
.
message
to_s
to_str
Returns the error message string.
set_backtrace(errinfo)
Sets the backtrace information of the exception. errinfo must be the array of the strings.
The exception for the untrapped SIGINT
.
Exception
The exception raised when unimplemented feature was invoked.
Exception
The exception raised by the signals (except SIGINT).
Exception
The rescue
class without class specifified will catch
the subclasses of this exception class.
Exception
Raised by exit
to terminate the interpreter.
Exception
The fatal error, which can not be caught nor handled.
e.g.:
Exception
The exception raised when some problem found with methods arguments. E.g.
Math.sqrt(-1)
StandardError
Raised by the floating point number operation with infinite number or NaN.
StandardError
Raised when index out of range.
StandardError
Raised when I/O error happened.
StandardError
Raised when load
or require
failed.
StandardError
raised by local jumps (return
, break
, next
, redo
,
retry
) from a Proc
object
which is brought out of its original scope.
StandardError
Raised by accessing an undefined identifier.
StandardError
The default exception caused by
raise
without specifying an exception.
StandardError
Raised by security problem with tainted data.
StandardError
Raised by a syntax error.
StandardError
The exceptions for system call failures.
This is the abstract super class for the actual system call exception classes,
which are defined under the Errno
module.
StandardError
errno
Returns the errno
passed from the OS.
Raised when stack level becomes too deep.
StandardError
Raised by the type problem. Mostly caused by C extensions.
StandardError
Raised by the follwing Thread
errors:
join
the current thread.
join
causes dead lock.
wakeup
the dead thread.
stop
a sole thread.
throw
happened.
return
.
StandardError
Raised by a division by zero.
StandardError
Raised when EOF is reached.
IOError