D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Fiber
/
Filename :
raise-i.ri
back
Copy
U:RDoc::AnyMethod[iI" raise:ETI"Fiber#raise;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"ERaises an exception in the fiber at the point at which the last ;TI"H+Fiber.yield+ was called. If the fiber has not been started or has ;TI"Ealready run to completion, raises +FiberError+. If the fiber is ;TI"Myielding, it is resumed. If it is transferring, it is transferred into. ;TI"0But if it is resuming, raises +FiberError+.;To:RDoc::Markup::BlankLine o; ; [ I"HWith no arguments, raises a +RuntimeError+. With a single +String+ ;TI"Qargument, raises a +RuntimeError+ with the string as a message. Otherwise, ;TI"Kthe first parameter should be the name of an +Exception+ class (or an ;TI"Hobject that returns an +Exception+ object when sent an +exception+ ;TI"Nmessage). The optional second parameter sets the message associated with ;TI"Qthe exception, and the third parameter is an array of callback information. ;TI"NExceptions are caught by the +rescue+ clause of <code>begin...end</code> ;TI"blocks.;T@o; ; [I"LRaises +FiberError+ if called on a Fiber belonging to another +Thread+.;T@o; ; [I"+See Kernel#raise for more information.;T: @fileI"cont.c;T:0@omit_headings_from_table_of_contents_below0I"�fiber.raise -> obj fiber.raise(string) -> obj fiber.raise(exception [, string [, array]]) -> obj ;T0[ I"(*args);T@#FI" Fiber;TcRDoc::NormalClass00