pydantic_settings.decoder.common

Module Contents

exception pydantic_settings.decoder.common.LocationLookupError

Inappropriate argument value (of correct type).

key :JsonLocation
part_pos :int
exception pydantic_settings.decoder.common.MappingExpectError

Inappropriate argument value (of correct type).

exception pydantic_settings.decoder.common.ListExpectError

Inappropriate argument value (of correct type).

class pydantic_settings.decoder.common.TextValues(finder: SourceValueLocationProvider[TextLocation], **values: Json)
get_location(self, val_loc: JsonLocation) → TextLocation
exception pydantic_settings.decoder.common.ParsingError(cause: Exception, text_location: TextLocation = None)

General wrapper for text parsing errors which also provides error location inside a source.

cause :Exception

Error causer

text_location :TextLocation

Error location inside text.