Wrapped an invalid card error into an exception fixes #2