lib/demiurge/exception.rb
def jsonable()
      bt = backtrace_chain.inject { |a, b| a + [ "... Caused by ..." ] + b }
      {
        "message" => self.message,
        "info" => self.info,
        "execution_context" => self.execution_context,
        "backtrace" => bt
      }
    end
# Serialize this exception to a JSON-serializable PORO.
#
# @return [Hash] The serialized {Demiurge::Errors::Exception} data
# @since 0.0.1
Serialize this exception to a JSON-serializable PORO.
Serialize this exception to a JSON - serializable PORO .
def jsonable()
      bt = backtrace_chain.inject { |a, b| a + [ "... Caused by ..." ] + b }
      {
        "message" => self.message,
        "info" => self.info,
        "execution_context" => self.execution_context,
        "backtrace" => bt
      }
    end
def jsonable ( ) bt = backtrace_chain . inject { | a , b | a + [ "... Caused by ..." ] + b } { "message" => self . message , "info" => self . info , "execution_context" => self . execution_context , "backtrace" => bt } end
Serialize this exception to a JSON-serializable PORO.
Serialize this exception to a JSON - serializable PORO .
The serialized {Demiurge::Errors::Exception} data
The serialized { Demiurge :: Errors :: Exception } data
Hash
since
None