Exception: Gel::Error::GemfileEvaluationError

Inherits:
UserError
  • Object
show all
Defined in:
lib/gel/error.rb

Instance Method Summary collapse

Methods inherited from UserError

#[], #inner_backtrace

Methods included from ReportableError

#exit_code

Constructor Details

#initialize(filename:) ⇒ GemfileEvaluationError

Returns a new instance of GemfileEvaluationError.



82
83
84
# File 'lib/gel/error.rb', line 82

def initialize(filename:)
  super
end

Instance Method Details

#detailsObject



90
91
92
# File 'lib/gel/error.rb', line 90

def details
  inner_backtrace.join("\n")
end

#messageObject



86
87
88
# File 'lib/gel/error.rb', line 86

def message
  "Failed to evaluate #{self[:filename].inspect}: #{cause&.message}"
end