Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby34 /
share /
ri /
system /
Exception /
Delete
Unzip
Name
Size
Permission
Date
Action
%3d%3d-i.ri
417
B
-rw-r--r--
2026-04-07 16:51
as_json-i.ri
946
B
-rw-r--r--
2026-04-07 16:51
backtrace-i.ri
1.33
KB
-rw-r--r--
2026-04-07 16:51
backtrace_locations-i.ri
1.53
KB
-rw-r--r--
2026-04-07 16:51
cause-i.ri
1.13
KB
-rw-r--r--
2026-04-07 16:51
cdesc-Exception.ri
3.37
KB
-rw-r--r--
2026-04-07 16:51
detailed_message-i.ri
1.96
KB
-rw-r--r--
2026-04-07 16:51
exception-c.ri
1.15
KB
-rw-r--r--
2026-04-07 16:51
exception-i.ri
1.14
KB
-rw-r--r--
2026-04-07 16:51
full_message-i.ri
2.08
KB
-rw-r--r--
2026-04-07 16:51
inspect-i.ri
562
B
-rw-r--r--
2026-04-07 16:51
json_create-c.ri
321
B
-rw-r--r--
2026-04-07 16:51
message-i.ri
394
B
-rw-r--r--
2026-04-07 16:51
new-c.ri
920
B
-rw-r--r--
2026-04-07 16:51
set_backtrace-i.ri
3.89
KB
-rw-r--r--
2026-04-07 16:51
to_json-i.ri
571
B
-rw-r--r--
2026-04-07 16:51
to_s-i.ri
513
B
-rw-r--r--
2026-04-07 16:51
to_tty%3f-c.ri
379
B
-rw-r--r--
2026-04-07 16:51
Save
Rename
U:RDoc::AnyMethod[iI"set_backtrace:ETI"Exception#set_backtrace;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DSets the backtrace value for +self+; returns the given +value+.;To:RDoc::Markup::BlankLine o; ; [I"The +value+ might be:;T@o:RDoc::Markup::List: @type:BULLET:@items[ o:RDoc::Markup::ListItem:@label0; [o; ; [I"-an array of Thread::Backtrace::Location;;To;;0; [o; ; [I""an array of String instances;;To;;0; [o; ; [I"!a single String instance; or;To;;0; [o; ; [I"+nil+.;T@o; ; [ I"GUsing array of Thread::Backtrace::Location is the most consistent ;TI"Loption: it sets both #backtrace and #backtrace_locations. It should be ;TI"Npreferred when possible. The suitable array of locations can be obtained ;TI"Mfrom Kernel#caller_locations, copied from another error, or just set to ;TI"Ethe adjusted result of the current error's #backtrace_locations:;T@o:RDoc::Markup::Verbatim; [I"require 'json' ;TI" ;TI"def parse_payload(text) ;TI"+ JSON.parse(text) # test.rb, line 4 ;TI"$rescue JSON::ParserError => ex ;TI"6 ex.set_backtrace(ex.backtrace_locations[2...]) ;TI" raise ;TI" end ;TI" ;TI"&parse_payload('{"wrong: "json"') ;TI"f# test.rb:4:in 'Object#parse_payload': unexpected token at '{"wrong: "json"' (JSON::ParserError) ;TI"# ;TI"<# An error points to the body of parse_payload method, ;TI"B# hiding the parts of the backtrace related to the internals ;TI"# of the "json" library ;TI" ;TI"A# The error has both #backtace and #backtrace_locations set ;TI"# consistently: ;TI"begin ;TI"( parse_payload('{"wrong: "json"') ;TI"rescue => ex ;TI" p ex.backtrace ;TI"K # ["test.rb:4:in 'Object#parse_payload'", "test.rb:20:in '<main>'"] ;TI" p ex.backtrace_locations ;TI"K # ["test.rb:4:in 'Object#parse_payload'", "test.rb:20:in '<main>'"] ;TI" end ;T:@format0o; ; [I"EWhen the desired stack of locations is not available and should ;TI"Dbe constructed from scratch, an array of strings or a singular ;TI"Cstring can be used. In this case, only #backtrace is affected:;T@o;; [I"def parse_payload(text) ;TI" JSON.parse(text) ;TI"$rescue JSON::ParserError => ex ;TI"9 ex.set_backtrace(["dsl.rb:34", "framework.rb:1"]) ;TI"5 # The error have the new value in #backtrace: ;TI" p ex.backtrace ;TI") # ["dsl.rb:34", "framework.rb:1"] ;TI" ;TI"6 # but the original one in #backtrace_locations ;TI" p ex.backtrace_locations ;TI"F # [".../json/common.rb:221:in 'JSON::Ext::Parser.parse'", ...] ;TI" end ;TI" ;TI"&parse_payload('{"wrong: "json"') ;T;0o; ; [I"OCalling #set_backtrace with +nil+ clears up #backtrace but doesn't affect ;TI"#backtrace_locations:;T@o;; [I"def parse_payload(text) ;TI" JSON.parse(text) ;TI"$rescue JSON::ParserError => ex ;TI" ex.set_backtrace(nil) ;TI" p ex.backtrace ;TI" # nil ;TI" p ex.backtrace_locations ;TI"F # [".../json/common.rb:221:in 'JSON::Ext::Parser.parse'", ...] ;TI" end ;TI" ;TI"&parse_payload('{"wrong: "json"') ;T;0o; ; [I"QOn reraising of such an exception, both #backtrace and #backtrace_locations ;TI"&is set to the place of reraising:;T@o;; [I"def parse_payload(text) ;TI" JSON.parse(text) ;TI"$rescue JSON::ParserError => ex ;TI" ex.set_backtrace(nil) ;TI" raise # test.rb, line 7 ;TI" end ;TI" ;TI"begin ;TI"( parse_payload('{"wrong: "json"') ;TI"rescue => ex ;TI" p ex.backtrace ;TI"K # ["test.rb:7:in 'Object#parse_payload'", "test.rb:11:in '<main>'"] ;TI" p ex.backtrace_locations ;TI"K # ["test.rb:7:in 'Object#parse_payload'", "test.rb:11:in '<main>'"] ;TI" end ;T;0o; ; [I"9See {Backtraces}[rdoc-ref:exceptions.md@Backtraces].;T: @fileI"error.c;T:0@omit_headings_from_table_of_contents_below0I"#set_backtrace(value) -> value ;T0[ I" (p1);T@�FI"Exception;TcRDoc::NormalClass00