ErrorMessageProvider

ErrorMessageProvider

class ErrorMessageProvider[source]

Bases: Protocol, Generic[configpile.parsers._Value_contra]

Generates formatted error messages when values are invalid

Methods

List of members of ErrorMessageProvider

__call__(string_to_parse, parsed_value)[source]

Returns a formatted error message describing a validation problem

Parameters
  • string_to_parse (str) – String provided by the user

  • parsed_value (TypeVar(_Value_contra, contravariant=True)) – Value parsed from string

Return type

str

__init__(*args, **kwargs)
static __new__(cls, *args, **kwds)