Exception: Alma::StandardError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/alma/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, loggable = {}) ⇒ StandardError

Returns a new instance of StandardError.



19
20
21
22
23
24
25
# File 'lib/alma/error.rb', line 19

def initialize(message, loggable = {})
  if Alma.configuration.enable_loggable
    message = { error: message }.merge(loggable).to_json
  end

  super message
end