// Path: rxuploader/src/main/java/com/jagsaund/rxuploader/UploadErrorAdapter.java
// public interface UploadErrorAdapter {
//     /**
//      * Maps {@link Throwable} to an {@link ErrorType}.
//      *
//      * @param error The error to map from
//      * @return an {@link ErrorType} representing the received {@code error}
//      */
//     @NonNull
//     ErrorType fromThrowable(@NonNull Throwable error);
// 
//     /**
//      * Determines if a particular {@code error} can be retried.
//      *
//      * @param error check if the error can be retried
//      * @return {@link Boolean#TRUE} if the job can be retried and {@link Boolean#FALSE} otherwise
//      */
//     boolean canRetry(@NonNull Throwable error);
// }
// 
// Path: rxuploader/src/main/java/com/jagsaund/rxuploader/job/ErrorType.java
// public enum ErrorType {
//     NETWORK("network"),
//     FILE_NOT_FOUND("file_not_found"),
//     SERVICE("service"),
//     TERMINATED("terminated"),
//     UNKNOWN("unknown");
// 
//     @NonNull private final String type;
// 
//     ErrorType(@NonNull String type) {
//         this.type = type;
//     }
// 
//     @NonNull
//     @Override
//     public String toString() {
//         return "ErrorType: " + type;
//     }
// }


import android.support.annotation.NonNull;
import com.jagsaund.rxuploader.UploadErrorAdapter;
import com.jagsaund.rxuploader.job.ErrorType;
import java.io.FileNotFoundException;
import java.io.IOException;
import retrofit2.HttpException;
package com.jagsaund.rxuploader.sample;


class PhotoUploadErrorAdapter implements UploadErrorAdapter {
    @NonNull
    @Override
// Path: rxuploader/src/main/java/com/jagsaund/rxuploader/UploadErrorAdapter.java
// public interface UploadErrorAdapter {
//     /**
//      * Maps {@link Throwable} to an {@link ErrorType}.
//      *
//      * @param error The error to map from
//      * @return an {@link ErrorType} representing the received {@code error}
//      */
//     @NonNull
//     ErrorType fromThrowable(@NonNull Throwable error);
// 
//     /**
//      * Determines if a particular {@code error} can be retried.
//      *
//      * @param error check if the error can be retried
//      * @return {@link Boolean#TRUE} if the job can be retried and {@link Boolean#FALSE} otherwise
//      */
//     boolean canRetry(@NonNull Throwable error);
// }
// 
// Path: rxuploader/src/main/java/com/jagsaund/rxuploader/job/ErrorType.java
// public enum ErrorType {
//     NETWORK("network"),
//     FILE_NOT_FOUND("file_not_found"),
//     SERVICE("service"),
//     TERMINATED("terminated"),
//     UNKNOWN("unknown");
// 
//     @NonNull private final String type;
// 
//     ErrorType(@NonNull String type) {
//         this.type = type;
//     }
// 
//     @NonNull
//     @Override
//     public String toString() {
//         return "ErrorType: " + type;
//     }
// }


// Path: rxuploader-sample/src/main/java/com/jagsaund/rxuploader/sample/PhotoUploadErrorAdapter.java
import android.support.annotation.NonNull;
import com.jagsaund.rxuploader.UploadErrorAdapter;
import com.jagsaund.rxuploader.job.ErrorType;
import java.io.FileNotFoundException;
import java.io.IOException;
import retrofit2.HttpException;

package com.jagsaund.rxuploader.sample;


class PhotoUploadErrorAdapter implements UploadErrorAdapter {
    @NonNull
    @Override
    public ErrorType fromThrowable(@NonNull Throwable error) {