I'm wondering if its possible to run a function when a specific error is returned in the console. For example Google maps sometimes returns this error.
InvalidValueError: setPosition: not a LatLng or LatLngLiteral: in property lng: not a number
What I want to do is send an alert()
message when this specific error occurs. Is this possible and how would I achieve it?