Exception: MxxRu::GlobalOptionConflictEx
- Defined in:
- lib/mxx_ru/ex.rb
Overview
Exception, thrown if value conflict for global options such as runtime_mode, rtl_mode, etc is detected
Instance Method Summary collapse
-
#initialize(a_name, a_current, a_current_owner, a_new, a_new_owner) ⇒ GlobalOptionConflictEx
constructor
- a_name
-
Option name.
Constructor Details
#initialize(a_name, a_current, a_current_owner, a_new, a_new_owner) ⇒ GlobalOptionConflictEx
- a_name
-
Option name.
- a_current
-
Current option value.
- a_current_owner
-
Who was set current value.
- a_new
-
New option value.
- a_new_owner
-
Who tries to set current value.
94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/mxx_ru/ex.rb', line 94 def initialize( a_name, a_current, a_current_owner, a_new, a_new_owner ) super( "Global option '#{a_name}' conflict detected! " + "Current value '#{a_current}' set by '#{a_current_owner}'. " + "New value '#{a_new}' required by '#{a_new_owner}'" ) end |