code: protected Event newEvent(final String id, final Throwable error) {
          return newEvent(id, new LocalAttributeMap(CasWebflowConstants.TRANSITION_ID_ERROR, error));
      }
docs: New event based on the id, which contains an error attribute referring to the exception occurred.
  
  @param id    the id
  @param error the error
  @return the event