/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
Errors.logErrors(true);
Errors.logErrors(true);
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and throw an exception if there are any fatal issues detected and * the {@code throwException} flag has been set to {@code true}. * * @param throwException if set to {@code true}, any fatal issues will cause a {@link ErrorMessagesException} * to be thrown. */ private static void processErrors(final boolean throwException) { final List<ErrorMessage> errors = new ArrayList<ErrorMessage>(Errors.errors.get().issues); boolean isFatal = logErrors(errors); if (throwException && isFatal) { throw new ErrorMessagesException(errors); } }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
/** * Log errors and return a status flag indicating whether a fatal issue has been found * in the error collection. * <p> * The {@code afterMark} flag indicates whether only those issues should be logged that were * added after a {@link #mark() mark has been set}. * </p> * * @param afterMark if {@code true}, only issues added after a mark has been set are returned, * if {@code false} all issues are returned. * @return {@code true} if there are any fatal issues present in the collection, {@code false} * otherwise. */ public static boolean logErrors(final boolean afterMark) { return logErrors(getInstance()._getErrorMessages(afterMark)); }
Errors.logErrors(true);
Errors.logErrors(true);
Errors.logErrors(true);
Errors.logErrors(true);