D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Exception
/
Filename :
full_message-i.ri
back
Copy
U:RDoc::AnyMethod[iI"full_message:ETI"Exception#full_message;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"(Returns an enhanced message string:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"'Includes the exception class name.;To;;0; [o; ; [I"IIf the value of keyword +highlight+ is true (not +nil+ or +false+), ;TI"Vincludes bolding ANSI codes (see below) to enhance the appearance of the message.;To;;0; [o; ; [I"AIncludes the {backtrace}[rdoc-ref:exceptions.md@Backtraces]:;T@o;; ;;[o;;0; [o; ; [I">If the value of keyword +order+ is +:top+ (the default), ;TI"Elists the error message and the innermost backtrace entry first.;To;;0; [o; ; [I"3If the value of keyword +order+ is +:bottom+, ;TI":lists the error message the the innermost entry last.;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I" def baz ;TI" begin ;TI" 1 / 0 ;TI" rescue => x ;TI" pp x.message ;TI"9 pp x.full_message(highlight: false).split("\n") ;TI"' pp x.full_message.split("\n") ;TI" end ;TI" end ;TI"def bar; baz; end ;TI"def foo; bar; end ;TI" foo ;T:@format0o; ; [I"Output:;T@o;; [I""divided by 0" ;TI"A["t.rb:3:in 'Integer#/': divided by 0 (ZeroDivisionError)", ;TI"' "\tfrom t.rb:3:in 'Object#baz'", ;TI"( "\tfrom t.rb:10:in 'Object#bar'", ;TI"( "\tfrom t.rb:11:in 'Object#foo'", ;TI"$ "\tfrom t.rb:12:in '<main>'"] ;TI"Z["t.rb:3:in 'Integer#/': \e[1mdivided by 0 (\e[1;4mZeroDivisionError\e[m\e[1m)\e[m", ;TI"' "\tfrom t.rb:3:in 'Object#baz'", ;TI"( "\tfrom t.rb:10:in 'Object#bar'", ;TI"( "\tfrom t.rb:11:in 'Object#foo'", ;TI"$ "\tfrom t.rb:12:in '<main>'"] ;T;0o; ; [I"IAn overriding method should be careful with ANSI code enhancements; ;TI"5see {Messages}[rdoc-ref:exceptions.md@Messages].;T: @fileI"error.c;T:0@omit_headings_from_table_of_contents_below0I":full_message(highlight: true, order: :top) -> string ;T0[ I"(p1 = {});T@TFI"Exception;TcRDoc::NormalClass00