Exception: EnvironmentConfig::Types::TypeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/environment_config/types/type_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expected_message, value) ⇒ TypeError

Returns a new instance of TypeError.



8
9
10
11
12
13
# File 'lib/environment_config/types/type_error.rb', line 8

def initialize(expected_message, value)
  @expected_message = expected_message
  @value = value

  super()
end

Instance Attribute Details

#expected_messageObject (readonly)

Returns the value of attribute expected_message.



6
7
8
# File 'lib/environment_config/types/type_error.rb', line 6

def expected_message
  @expected_message
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/environment_config/types/type_error.rb', line 6

def value
  @value
end