/** * Checks whether a batch entry is an error report. * * This method is a shortcut for checking the code of * the entry's {@link BatchStatus} object. * * You'll want to call {@link #getStatus(IEntry)} * to get the error description and message when this * method returns true. * * @param entry * @return true if the entry is an error report. * @exception IllegalArgumentException if the entry does not contain * a BatchStatus object. */ public static boolean isFailure(IEntry entry) { return !isSuccess(entry); }
/** * Checks whether a batch entry is an error report. * * This method is a shortcut for checking the code of * the entry's {@link BatchStatus} object. * * You'll want to call {@link #getStatus(IEntry)} * to get the error description and message when this * method returns true. * * @param entry * @return true if the entry is an error report. * @exception IllegalArgumentException if the entry does not contain * a BatchStatus object. */ public static boolean isFailure(IEntry entry) { return !isSuccess(entry); }
/** * Checks whether a batch entry is an error report. * * This method is a shortcut for checking the code of * the entry's {@link BatchStatus} object. * * You'll want to call {@link #getStatus(IEntry)} * to get the error description and message when this * method returns true. * * @param entry * @return true if the entry is an error report. * @exception IllegalArgumentException if the entry does not contain * a BatchStatus object. */ public static boolean isFailure(IEntry entry) { return !isSuccess(entry); }