APIdock / Ruby
/
method

cause

ruby latest stable - Class: Exception
cause()
public

Returns the previous exception ($!) at the time this exception was raised. This is useful for wrapping exceptions and retaining the original exception information.

static VALUE
exc_cause(VALUE exc)
{
 return rb_attr_get(exc, id_cause);
}

AltStyle によって変換されたページ (->オリジナル) /