code: public B error() {
      ErrorEventDefinition errorEventDefinition = createInstance(ErrorEventDefinition.class);
      element.getEventDefinitions().add(errorEventDefinition);
  
      return myself;
    }
docs: Sets a catch all error definition.
  
  @return the builder object