class Buildr::TestFramework::TestResult::Error

Attributes

backtrace[R]
message[R]

Public Class Methods

dump_yaml(file, e) click to toggle source
# File lib/buildr/java/test_result.rb, line 35
def self.dump_yaml(file, e)
  FileUtils.mkdir_p File.dirname(file)
  File.open(file, 'w') { |f| f.puts(YAML.dump(Error.new(e.message, e.backtrace))) }
end
guard(file) { || ... } click to toggle source
# File lib/buildr/java/test_result.rb, line 40
def self.guard(file)
  begin
    yield
  rescue => e
    dump_yaml(file, e)
  end
end
new(message, backtrace) click to toggle source
# File lib/buildr/java/test_result.rb, line 29
def initialize(message, backtrace)
  @message = message
  @backtrace = backtrace
  set_backtrace backtrace
end