Exception: MKBrut::Ops::PrismParsingOp::SourceNotParseable
- Inherits:
-
StandardError
- Object
- StandardError
- MKBrut::Ops::PrismParsingOp::SourceNotParseable
- Defined in:
- lib/mkbrut/ops/prism_parsing_op.rb
Instance Method Summary collapse
-
#initialize(tree_errors:, file:) ⇒ SourceNotParseable
constructor
A new instance of SourceNotParseable.
Constructor Details
#initialize(tree_errors:, file:) ⇒ SourceNotParseable
Returns a new instance of SourceNotParseable.
20 21 22 23 24 25 |
# File 'lib/mkbrut/ops/prism_parsing_op.rb', line 20 def initialize(tree_errors:, file:) = tree_errors.map { |error| "#{error.} (line #{error.location.start_line}, column #{error.location.start_column})" }.join(", ") super("Failed to parse file '#{file}': #{}") end |