Sha256: 341920a3dab2499e3fc998ffddce198637e00f13bbcb6147342183aa512a3556
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
module Errplane class BlackBox attr_reader :exception def initialize(params = {}) @exception = params[:exception] end def to_json { :time => Time.now.to_i, :message => @exception.message, :backtrace => @exception.backtrace, :exception_class => @exception.class.to_s }.to_json end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.0.6 | lib/errplane/black_box.rb |
errplane-0.0.5 | lib/errplane/black_box.rb |