Sphere Geometry and Error Handling