class ApplicationError
Attributes
data[R]
Public Class Methods
new(subject, tags = '', data = {})
click to toggle source
Calls superclass method
# File lib/tracer_client/errors/application_error.rb, line 6 def initialize(subject, tags = '', data = {}) super(subject) @tags = tags @data = data puts "#{'-'*10}\n#{@data}\n#{'-'*10}" if Rails.env.development? Log.on_raise(self, caller(2)) end
Public Instance Methods
with_alert?()
click to toggle source
для логирования при бросании и в дефолтном обработчике
# File lib/tracer_client/errors/application_error.rb, line 24 def with_alert? self.class.name.end_with?('Alert') end
with_log?()
click to toggle source
для логирования при бросании и в дефолтном обработчике
# File lib/tracer_client/errors/application_error.rb, line 18 def with_log? self.class.name.end_with?('Log', 'Alert') end