I think you mean longitude. Rather than throwing an exception, could you convert these instead?