class MxxRu::Global_option_disallowed_value_ex

Exception, thrown if anyone tries to set invalid value to global options such as runtime_mode, rtl_mode, etc.

Public Class Methods

new( a_name, a_available_values, a_new, a_new_owner ) click to toggle source
a_name

Option name.

a_available_values

Available values list. Should be Array of String.

a_new

New option value.

a_new_owner

Who tries to set new value.

Calls superclass method
# File lib/mxx_ru/ex.rb, line 117
def initialize(
  a_name,
  a_available_values,
  a_new,
  a_new_owner )

  super( "Value '#{new}' required by '#{a_new_owner}' " +
    "disallowed for global option '#{a_name}'! " +
    "Allowed values are: #{a_available_values.join(' ')}" )
end