id_translation.mapping.exceptions#
Mapping errors.
Exceptions
|
Indicates that the scoring logic has produces ambiguous scores. |
|
Invalid filter. |
|
Base class for cardinality issues. |
|
Base exception class for all mapping-related issues. |
Base warning class for all mapping-related issues. |
|
|
Indicates that the scoring logic has been disabled. |
|
Raised when names explicitly provided by the user could not be mapped. |
|
Raised when there are unmapped values left after filtering and on_unmapped='raise'. |
Raised when there are unmapped values left after filtering and on_unmapped='raise'. |
|
|
A user-defined mapping function did something forbidden. |
A user-defined mapping function did something strange. |
- exception AmbiguousScoreError(kind, key, match0, match1, cardinality, scores)[source]#
Bases:
MappingErrorIndicates that the scoring logic has produces ambiguous scores.
- exception BadFilterError(msg, *, ref='')[source]#
Bases:
MappingErrorInvalid filter.
- exception CardinalityError(msg, *, ref='')[source]#
Bases:
MappingErrorBase class for cardinality issues.
- exception MappingError(msg, *, ref='')[source]#
Bases:
ExceptionBase exception class for all mapping-related issues.
- exception MappingWarning[source]#
Bases:
UserWarningBase warning class for all mapping-related issues.
- exception ScoringDisabledError(value, candidates, context)[source]#
Bases:
MappingErrorIndicates that the scoring logic has been disabled. Raised by
score_functions.disabled().
- exception UnmappedExplicitNamesError(msg, *, names, unmapped)[source]#
Bases:
MappingErrorRaised when names explicitly provided by the user could not be mapped.
- exception UnmappedValuesError(msg, *, ref='')[source]#
Bases:
MappingErrorRaised when there are unmapped values left after filtering and on_unmapped=’raise’.
- exception UnmappedValuesWarning[source]#
Bases:
MappingWarningRaised when there are unmapped values left after filtering and on_unmapped=’raise’.
- exception UserMappingError(msg, value, candidates)[source]#
Bases:
MappingErrorA user-defined mapping function did something forbidden.
- exception UserMappingWarning[source]#
Bases:
MappingWarningA user-defined mapping function did something strange.