Add error handling and earth lap collision with bounding box

This commit is contained in:
Guillaume Mourier
2022-10-28 15:30:53 +02:00
committed by Louis Dureuil
parent 5c525168a0
commit b078477d80
6 changed files with 165 additions and 37 deletions

View File

@ -55,6 +55,9 @@ impl From<AscDescError> for CriterionError {
AscDescError::ReservedKeyword { name } if name.starts_with("_geoRadius") => {
CriterionError::ReservedNameForFilter { name: "_geoRadius".to_string() }
}
AscDescError::ReservedKeyword { name } if name.starts_with("_geoBoundingBox") => {
CriterionError::ReservedNameForFilter { name: "_geoBoundingBox".to_string() }
}
AscDescError::ReservedKeyword { name } => CriterionError::ReservedName { name },
}
}