Data failed validation — invalid coordinates, a missing parameter, a malformed shape.
Code: VALIDATION_ERROR.
VALIDATION_ERROR
throw new GeoLeaf.Errors.ValidationError("Latitude must be between -90 and 90", { lat: 95, lng: -73, expected: "Range: -90 to 90",});// Catch spécifiquetry { GeoLeaf.Core.init({ // options });} catch (error) { if (error instanceof GeoLeaf.Errors.ValidationError) { console.error("Erreur de validation:", error.context); }} Copy
throw new GeoLeaf.Errors.ValidationError("Latitude must be between -90 and 90", { lat: 95, lng: -73, expected: "Range: -90 to 90",});// Catch spécifiquetry { GeoLeaf.Core.init({ // options });} catch (error) { if (error instanceof GeoLeaf.Errors.ValidationError) { console.error("Erreur de validation:", error.context); }}
Returns a string representation of an object.
Data failed validation — invalid coordinates, a missing parameter, a malformed shape.
Code:
VALIDATION_ERROR.Example