Exception: Ruber::Rake::Plugin::RakeError

Inherits:
Error
  • Object
show all
Defined in:
plugins/rake/rake.rb

Overview

Exception raised when the rake program exits with an error

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (RakeError) initialize(error, backtrace)

A new instance of RakeError

Parameters:

  • error (String)

    the error message produced by rake

  • backtrace (String)

    an array containing the rake backtrace



87
88
89
90
91
# File 'plugins/rake/rake.rb', line 87

def initialize error, backtrace
  super "Rake aborted saying: #{error}"
  @rake_error = error
  @rake_backtrace = backtrace
end

Instance Attribute Details

- (<String>) rake_backtrace (readonly)

The backtrace produced by rake

Returns:

  • (<String>)

    the backtrace produced by rake



81
82
83
# File 'plugins/rake/rake.rb', line 81

def rake_backtrace
  @rake_backtrace
end

- (String) rake_error (readonly)

The error message produced by rake

Returns:

  • (String)

    the error message produced by rake



76
77
78
# File 'plugins/rake/rake.rb', line 76

def rake_error
  @rake_error
end