D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
SyntaxSuggest
/
Filename :
handle_error-c.ri
back
Copy
U:RDoc::AnyMethod[iI"handle_error:ETI" SyntaxSuggest::handle_error;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"(SyntaxSuggest.handle_error [Public];To:RDoc::Markup::BlankLine o; ; [ I"/Takes a `SyntaxError` exception, uses the ;TI"5error message to locate the file. Then the file ;TI"9will be analyzed to find the location of the syntax ;TI",error and emit that location to stderr.;T@o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [ I"begin ;TI" require 'bad_file' ;TI"rescue => e ;TI"% SyntaxSuggest.handle_error(e) ;TI" end ;T:@format0o; ; [I"6By default it will re-raise the exception unless ;TI"4`re_raise: false`. The message output location ;TI"5can be configured using the `io: $stderr` input.;T@o; ; [I"<If a valid filename cannot be determined, the original ;TI",exception will be re-raised (even with ;TI"`re_raise: false`).;T: @fileI"lib/syntax_suggest/api.rb;T:0@omit_headings_from_table_of_contents_below000[ I"%(e, re_raise: true, io: $stderr);T@)FI"SyntaxSuggest;TcRDoc::NormalModule00