Throw Exception if it is not recognized