Class: Proof::Error
Defined Under Namespace
Modules: Backtrace
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.output(error) ⇒ Object
7 8 9 10 |
# File 'lib/proof/error.rb', line 7 def self.output(error) instance = new error instance.output end |
Instance Method Details
#backtrace ⇒ Object
12 13 14 |
# File 'lib/proof/error.rb', line 12 def backtrace @backtrace ||= Extension.!(@error.backtrace, Backtrace) end |
#error_message ⇒ Object
22 23 24 |
# File 'lib/proof/error.rb', line 22 def "(#{error.class}) \"#{error.message}\" at #{backtrace.first_frame}" end |
#output ⇒ Object
16 17 18 19 20 |
# File 'lib/proof/error.rb', line 16 def output backtrace.remove_proof_framework_frames! Output.error Output.backtrace " #{backtrace.join("\n ")}" end |