added custom exception for no case with no metadata