Exception: Exception
- Defined in:
- lib/ext/exception.rb
Overview
Extend the Exception class to add a method for serializing error details.
Instance Method Summary collapse
-
#mv_serialize_error ⇒ Hash
Serialize the exception into a hash with message, class, and backtrace.
Instance Method Details
#mv_serialize_error ⇒ Hash
Serialize the exception into a hash with message, class, and backtrace.
13 14 15 16 17 18 19 |
# File 'lib/ext/exception.rb', line 13 def mv_serialize_error { message: , class: self.class.name, backtrace: Array(backtrace) } end |