Class: Excepty::Analyzer::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/excepty/analyzers/error.rb

Class Method Summary collapse

Class Method Details

.get_struct(exception, env) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/excepty/analyzers/error.rb', line 5

def self.get_struct( exception, env )
  return_struct = {}
  
  return_struct["exception_class"] = exception.class.to_s
  return_struct["message"] = exception.message.to_s
  return_struct["backtrace"] = exception.backtrace
  
  return return_struct
end