D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Exception
/
Filename :
exception-c.ri
back
Copy
U:RDoc::AnyMethod[iI"exception:ETI"Exception::exception;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I">Returns an exception object of the same class as +self+; ;TI"Kuseful for creating a similar exception, but with a different message.;To:RDoc::Markup::BlankLine o; ; [I"*With +message+ +nil+, returns +self+:;T@o:RDoc::Markup::Verbatim; [I"@x0 = StandardError.new('Boom') # => #<StandardError: Boom> ;TI"@x1 = x0.exception # => #<StandardError: Boom> ;TI".x0.__id__ == x1.__id__ # => true ;T:@format0o; ; [ I"dWith {string-convertible object}[rdoc-ref:implicit_conversion.rdoc@String-Convertible+Objects] ;TI"8+message+ (even the same as the original message), ;TI"Greturns a new exception object whose class is the same as +self+, ;TI".and whose message is the given +message+:;T@o;; [I";x1 = x0.exception('Boom') # => #<StandardError: Boom> ;TI")x0..equal?(x1) # => false;T; 0: @fileI"error.c;T:0@omit_headings_from_table_of_contents_below0I"7exception(message = nil) -> self or new_exception ;T0[ I"(*args);T@"FI"Exception;TcRDoc::NormalClass00