rics.mapping.exceptions#
Mapping errors.
Classes
|
Special type indicating an unconstrained type. |
Exceptions
|
Indicates that the scoring logic has produces ambiguous scores. |
|
Invalid filter. |
|
Base class for cardinality issues. |
|
Something failed to map. |
Something failed to map. |
|
|
Indicates that the scoring logic has been disabled. |
|
A user-defined mapping function did something forbidden. |
A user-defined mapping function did something strange. |
- exception MappingError(msg: str)[source]#
Bases:
ValueErrorSomething failed to map.
- exception ScoringDisabledError(value: Any, candidates: Any, context: Any)[source]#
Bases:
MappingErrorIndicates that the scoring logic has been disabled. Raised by
score_functions.disabled().
- exception AmbiguousScoreError(kind: str, key: Any, match0: Any, match1: Any, cardinality: str, scores: str)[source]#
Bases:
MappingErrorIndicates that the scoring logic has produces ambiguous scores.
- exception UserMappingError(msg: str, value: Any, candidates: Set[Any])[source]#
Bases:
MappingErrorA user-defined mapping function did something forbidden.
- exception CardinalityError(msg: str)[source]#
Bases:
MappingErrorBase class for cardinality issues.
- exception MappingWarning[source]#
Bases:
UserWarningSomething failed to map.
- exception UserMappingWarning[source]#
Bases:
MappingWarningA user-defined mapping function did something strange.
- exception BadFilterError(msg: str)[source]#
Bases:
MappingErrorInvalid filter.