Class Bundler::Dsl::DSLError
In: lib/bundler/dsl.rb
Parent: GemfileError

Methods

contents   new   status_code   to_s  

Attributes

backtrace  [R]  @return [Exception] the backtrace of the exception raised by the
        evaluation of the dsl file.
description  [R]  @return [String] the description that should be presented to the user.
dsl_path  [R]  @return [String] the path of the dsl file that raised the exception.

Public Class methods

@param [Exception] backtrace @see backtrace @param [String] dsl_path @see dsl_path

Public Instance methods

@return [String] the contents of the DSL that cause the exception to

        be raised.

The message of the exception reports the content of podspec for the line that generated the original exception.

@example Output

  Invalid podspec at `RestKit.podspec` - undefined method
  `exclude_header_search_paths=' for #<Pod::Specification for
  `RestKit/Network (0.9.3)`>

      from spec-repos/master/RestKit/0.9.3/RestKit.podspec:36
      -------------------------------------------
          # because it would break: #import <CoreData/CoreData.h>
   >      ns.exclude_header_search_paths = 'Code/RestKit.h'
        end
      -------------------------------------------

@return [String] the message of the exception.

[Validate]