Method: ExceptionEngine::Data#parse
- Defined in:
- app/models/exception_engine/data.rb
#parse(notice) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'app/models/exception_engine/data.rb', line 16 def parse(notice) self.error_class = notice.error_class self. = notice. if !notice.backtrace.lines.empty? notice.backtrace.lines.each do | line | if !line.nil? b = ExceptionEngine::BacktraceData.new b.line_num = line.number b.file = line.file b.ruby_method = line.method self.backtraces << b end end end self.created_at = Time.now.utc end |