Throwing an exception when parser was not found