Class: Morpher::Transform::Error

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

Overview

Deep error data structure

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#compact_messageString

Compact error message

Returns:

  • (String)


70
71
72
# File 'lib/morpher/transform.rb', line 70

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

#traceArray<Error>

Error path trace

Returns:



78
79
80
# File 'lib/morpher/transform.rb', line 78

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