Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
Kernel
/
//proc/thread-self/root/proc/self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/Kernel/fail-i.ri
U:RDoc::AnyMethod[iI" fail:ETI"Kernel#fail;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"JWith no arguments, raises the exception in <code>$!</code> or raises ;TI">a <code>RuntimeError</code> if <code>$!</code> is +nil+. ;TI"/With a single +String+ argument, raises a ;TI"=+RuntimeError+ with the string as a message. Otherwise, ;TI">the first parameter should be the name of an +Exception+ ;TI"Fclass (or an object that returns an +Exception+ object when sent ;TI"Ean +exception+ message). The optional second parameter sets the ;TI"Jmessage associated with the exception, and the third parameter is an ;TI"Aarray of callback information. Exceptions are caught by the ;TI"8+rescue+ clause of <code>begin...end</code> blocks.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"%raise "Failed to create socket" ;TI"2raise ArgumentError, "No parameters", caller ;T:@format0o; ; [ I"HThe +cause+ of the generated exception is automatically set to the ;TI"C"current" exception (<code>$!</code>) if any. An alternative ;TI"Hvalue, either an +Exception+ object or +nil+, can be specified via ;TI"the +:cause+ argument.;T: @fileI"eval.c;T:0@omit_headings_from_table_of_contents_below0I"Qfail fail(string, cause: $!) fail(exception [, string [, array]], cause: $!);T0[ I"(*args);T@"FI"Kernel;TcRDoc::NormalModule00