package com.jagsaund.rxuploader;

import android.support.annotation.NonNull;
import com.jagsaund.rxuploader.job.ErrorType;

public interface UploadErrorAdapter {
    @NonNull
    ErrorType fromThrowable(@NonNull Throwable error);

    boolean canRetry(@NonNull Throwable error);
}

@@ -121,114 +121,724 @@
 e;%0A%0A
-public interface UploadErrorAdapter %7B%0A    @NonNull%0A    ErrorType fromThrowable(@NonNull Throwable error);%0A
+/**%0A * Defines how the %7B@link Uploader%7D should handle errors. This includes mapping %7B@link Throwable%7D to%0A * %7B@link ErrorType%7D and determining which errors can be retried.%0A */%0Apublic interface UploadErrorAdapter %7B%0A    /**%0A     * Maps %7B@link Throwable%7D to an %7B@link ErrorType%7D.%0A     *%0A     * @param error The error to map from%0A     * @return an %7B@link ErrorType%7D representing the received %7B@code error%7D%0A     */%0A    @NonNull%0A    ErrorType fromThrowable(@NonNull Throwable error);%0A%0A    /**%0A     * Determines if a particular %7B@code error%7D can be retried.%0A     *%0A     * @param error check if the error can be retried%0A     * @return %7B@link Boolean#TRUE%7D if the job can be retried and %7B@link Boolean#FALSE%7D otherwise%0A     */
 %0A   

Add documentation to UploadErrorAdapter