Better exception for unknown body
Currently I see the follow exception when calling celectialBodies.getBody("MON")
. My mistake, but it would be nicer if the exception is an OrekitException
and included the name of the requested body and said it was not found so that I know what my mistake is.
java.lang.NullPointerException: null
at org.orekit.bodies.LazyLoadedCelestialBodies.getBody(LazyLoadedCelestialBodies.java:330)