public ErrorEventDefinitionBuilder errorEventDefinition() {
    ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition();
    element.getEventDefinitions().add(errorEventDefinition);
    return new ErrorEventDefinitionBuilder(modelInstance, errorEventDefinition);
  }
public ErrorEventDefinitionBuilder errorEventDefinition ( ) { ErrorEventDefinition errorEventDefinition = createEmptyErrorEventDefinition ( ) ; element . getEventDefinitions ( ) . add ( errorEventDefinition ) ; return new ErrorEventDefinitionBuilder ( modelInstance , errorEventDefinition ) ; }
Creates an error event definition
and returns a builder for the error event definition.

@return the error event definition builder object