D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Exception
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"Exception::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"$Returns a new exception object.;To:RDoc::Markup::BlankLine o; ; [ I"#The given +message+ should be ;TI"ba {string-convertible object}[rdoc-ref:implicit_conversion.rdoc@String-Convertible+Objects]; ;TI"see method #message; ;TI"Eif not given, the message is the class name of the new instance ;TI"+(which may be the name of a subclass):;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"8Exception.new # => #<Exception: Exception> ;TI"QLoadError.new # => #<LoadError: LoadError> # Subclass of Exception. ;TI"2Exception.new('Boom') # => #<Exception: Boom>;T:@format0: @fileI"error.c;T:0@omit_headings_from_table_of_contents_below0I"/Exception.new(message = nil) -> exception ;T0[ I"(*args);T@FI"Exception;TcRDoc::NormalClass00