Exception: Appom::ConfigurationError

Inherits:
AppomError
  • Object
show all
Defined in:
lib/appom/exceptions.rb

Overview

Configuration-related errors

Instance Attribute Summary

Attributes inherited from AppomError

#context

Instance Method Summary collapse

Methods inherited from AppomError

#detailed_message

Constructor Details

#initialize(setting, value = nil, reason = nil) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



94
95
96
97
98
99
# File 'lib/appom/exceptions.rb', line 94

def initialize(setting, value = nil, reason = nil)
  message = "Invalid configuration for '#{setting}'"
  message += " (value: #{value})" if value
  message += ": #{reason}" if reason
  super(message, { setting: setting, value: value, reason: reason })
end