Class: Exceptional::AlertData

Inherits:
ExceptionData show all
Defined in:
lib/exceptional/alert_data.rb

Instance Method Summary collapse

Methods inherited from ExceptionData

#context_stuff, #extra_stuff, #extract_http_headers, #framework, #initialize, sanitize_hash, sanitize_session, #to_hash, #to_json, #uniqueness_hash

Constructor Details

This class inherits a constructor from Exceptional::ExceptionData

Instance Method Details

#extra_dataObject

Overwrite backtrace, since it is irrelevant



4
5
6
7
8
9
10
11
12
13
# File 'lib/exceptional/alert_data.rb', line 4

def extra_data
  {
    'exception' => {
      'exception_class' => @exception.class.to_s,
      'message' => @exception.message,
      'backtrace' => "",
      'occurred_at' => Time.now
    }
  }
end