D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Exception
/
Filename :
detailed_message-i.ri
back
Copy
U:RDoc::AnyMethod[iI"detailed_message:ETI"Exception#detailed_message;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"2Returns the message string with enhancements:;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"9Includes the exception class name in the first line.;To;;0; [o; ; [I"4If the value of keyword +highlight+ is +true+, ;TI"=includes bolding and underlining ANSI codes (see below) ;TI".to enhance the appearance of the message.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"begin ;TI" 1 / 0 ;TI"rescue => x ;TI" p x.message ;TI"A p x.detailed_message # Class name added. ;TI"[ p x.detailed_message(highlight: true) # Class name, bolding, and underlining added. ;TI" end ;T:@format0o; ; [I"Output:;T@o;; [I""divided by 0" ;TI"("divided by 0 (ZeroDivisionError)" ;TI"A"\e[1mdivided by 0 (\e[1;4mZeroDivisionError\e[m\e[1m)\e[m" ;T;0o; ; [I"\This method is overridden by some gems in the Ruby standard library to add information:;T@o;; ;;[o;;0; [o; ; [I".DidYouMean::Correctable#detailed_message.;To;;0; [o; ; [I".ErrorHighlight::CoreExt#detailed_message.;To;;0; [o; ; [I"$SyntaxSuggest#detailed_message.;T@o; ; [I"HAn overriding method must be tolerant of passed keyword arguments, ;TI"3which may include (but may not be limited to):;T@o;; ;;[ o;;0; [o; ; [I"+:highlight+.;To;;0; [o; ; [I"+:did_you_mean+.;To;;0; [o; ; [I"+:error_highlight+.;To;;0; [o; ; [I"+:syntax_suggest+.;T@o; ; [I"NAn overriding method should also 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"<detailed_message(highlight: false, **kwargs) -> string ;T0[ I"(p1 = {});T@cFI"Exception;TcRDoc::NormalClass00