/** * Reports a warning. * * <p>Behaves similar to {@link #handleSyncError(String, int, String)} but does not abort the * build. * * @see #handleSyncError(String, int, String) */ @NonNull public final SyncIssue handleSyncWarning(@Nullable String data, int type, @NonNull String msg) { return handleIssue(data, type, SyncIssue.SEVERITY_WARNING, msg); } }
/** * Reports an error. * * <p>The behavior of this method depends on whether the project is being evaluated by * an IDE or from the command line. If it's the former, the error will simply be recorder * and displayed after the sync properly finishes. If it's the latter, then the evaluation * is aborted right away. * * @param data a data representing the source of the error. This goes hand in hand with the * <var>type</var>, and is not meant to be readable. Instead a (possibly translated) * message is created from this data and type. * @param type the type of the error. * @param msg a human readable error (for command line output, or if an older IDE doesn't know * this particular issue type.) * @return a SyncIssue if the error is only recorded. * * @see SyncIssue */ @NonNull public final SyncIssue handleSyncError(@Nullable String data, int type, @NonNull String msg) { return handleIssue(data, type, SyncIssue.SEVERITY_ERROR, msg); }