thrownewInvalidPluginDefinitionException($entity_type_id,sprintf('The "%s" entity type did not specify a %s handler.',$entity_type_id,$handler_type));
$handlers=$definition->getHandlerClasses();
if(!isset($handlers[$handler_type])){
thrownewInvalidPluginDefinitionException($entity_type_id,sprintf('The "%s" entity type did not specify a %s handler.',$entity_type_id,$handler_type));
}
thrownewInvalidPluginDefinitionException($entity_type_id,sprintf('The %s handler of the "%s" entity type specifies a non-existent class "%s".',$handler_type,$entity_type_id,$handlers[$handler_type]));