Exception: Baha::ContainerOptions::InvalidOptionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/baha/container_options/invalid_option_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, value, reason) ⇒ InvalidOptionError

Returns a new instance of InvalidOptionError.



7
8
9
10
11
12
# File 'lib/baha/container_options/invalid_option_error.rb', line 7

def initialize(key,value,reason)
  super("Unable to validate option: #{key}. '#{value}' #{reason}")
  @key = key
  @value = value
  @reason = reason
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/baha/container_options/invalid_option_error.rb', line 4

def key
  @key
end

#reasonObject (readonly)

Returns the value of attribute reason.



6
7
8
# File 'lib/baha/container_options/invalid_option_error.rb', line 6

def reason
  @reason
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/baha/container_options/invalid_option_error.rb', line 5

def value
  @value
end