class

GeoJSON::Exception

Inherits Exception < Reference < Object

Raised when an attempt is made to create a GeoJSON object that is malformed.

In most cases, this means that the given coordinates for a geometry object don't fulfill the requirements for that geometry type.