Exception: ArchetypeError
- Defined in:
- lib/quarter_system/argumentation/errors.rb
Overview
ArgumentMerger.send(:include, SetupLoggers) ArgumentMerger.logger = ArgumentMergerLogger.new(File.join(Rails.root, ‘log’, “argument_merger_#Rails.env.log”))
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(msg = nil, opts = {}) ⇒ ArchetypeError
constructor
A new instance of ArchetypeError.
- #name ⇒ Object
Constructor Details
#initialize(msg = nil, opts = {}) ⇒ ArchetypeError
Returns a new instance of ArchetypeError.
24 25 26 |
# File 'lib/quarter_system/argumentation/errors.rb', line 24 def initialize(msg=nil, opts={}) ArgumentMerger.logger.send(opts[:severity] || :warn, "#{name}: #{msg}") end |
Instance Method Details
#name ⇒ Object
28 29 30 |
# File 'lib/quarter_system/argumentation/errors.rb', line 28 def name this.class.name end |