package com.sdcode.videoplayer.storageProcess;


public class ProgressException extends Exception {

    private ErrorCause error;

    public ProgressException(ErrorCause error) {
        this.error = error;
    }

    public ProgressException(String error) {
        this.error = new ErrorCause(error);
    }

    public ErrorCause getError() {
        return error;
    }

    @Override
    public String toString() {
        return error.toString();
    }

    @Override
    public String getMessage() {
        return toString();
    }

    @Override
    public String getLocalizedMessage() {
        return toString();
    }
}
