public static Set<ErrorType> asSet(final ErrorType... errorTypes) {
        final Set<ErrorType> set = EnumSet.noneOf(ErrorType.class);
        if (errorTypes != null) {
            for (final ErrorType errorType : errorTypes) {
                if (errorType != null) {
                    set.add(errorType);
                }
            }
        }
        return set;
    }
When the type of error is unknown.
stroom-util-shared/src/main/java/stroom/util/shared/ErrorType.java