class ElasticNotifier::Error

Attributes

attributes[R]

Public Class Methods

new(error, overrides = {}) click to toggle source
Calls superclass method
# File lib/elastic_notifier/error.rb, line 5
def initialize(error, overrides = {})
  super(overrides)
  @error = error
end

Public Instance Methods

data() click to toggle source
# File lib/elastic_notifier/error.rb, line 14
def data
  { 
    name: @error.class.name,
    message: @error.message,
    backtrace: @error.backtrace
  }
end
severity() click to toggle source
# File lib/elastic_notifier/error.rb, line 10
def severity
  'error'
end