Exception: Puppet::Pops::Types::StringConverter::FormatError Private

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/puppet/pops/types/string_converter.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(type_string, actual, expected) ⇒ FormatError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FormatError.



15
16
17
# File 'lib/puppet/pops/types/string_converter.rb', line 15

def initialize(type_string, actual, expected)
  super "Illegal format '#{actual}' specified for value of #{type_string} type - expected one of the characters '#{expected}'"
end