VancedMicroG/play-services-tasks/src/main/java/com/google/android/gms/tasks/OnFailureListener.java

28 lines
812 B
Java

/*
* SPDX-FileCopyrightText: 2016, microG Project Team
* SPDX-License-Identifier: Apache-2.0 AND CC-BY-4.0
* Notice: Portions of this file are reproduced from work created and shared by Google and used
* according to terms described in the Creative Commons 4.0 Attribution License.
* See https://developers.google.com/readme/policies for details.
*/
package com.google.android.gms.tasks;
import org.microg.gms.common.PublicApi;
/**
* Listener called when a {@link Task} fails with an exception.
*
* @see Task#addOnFailureListener(OnFailureListener)
*/
@PublicApi
public interface OnFailureListener {
/**
* Called when the Task fails with an exception.
*
* @param e the exception that caused the Task to fail. Never null
*/
void onFailure(Exception e);
}