In Files

    • error.c

    Parent

    Class/Module Index [+]

    Quicksearch
    No matching classes.

    StandardError

    The most standard error types are subclasses of . A rescue clause without an explicit 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

    This page was generated for Ruby

    is a service of and , purveyors of fine dance noise.

    Generated with Ruby-doc Rdoc Generator 0.44.0.