Class: Mutant::Transform::Error Private

Inherits:
Object
  • Object
show all
Includes:
Unparser::Adamantium
Defined in:
lib/mutant/transform.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Deep error data structure

Constant Summary collapse

COMPACT =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'%<path>s: %<message>s'

Instance Method Summary collapse

Instance Method Details

#compact_messageString

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Compact error message

Returns:

  • (String)


37
38
39
# File 'lib/mutant/transform.rb', line 37

def compact_message
  COMPACT % { path:, message: trace.last.message }
end

#traceArray<Error>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Error path trace

Returns:



45
46
47
# File 'lib/mutant/transform.rb', line 45

def trace
  [self, *cause&.trace]
end