{% include "/android/_dackka-meta-tags.html" %}

OnFailureListener

{% setvar page_path %}com/google/android/gms/tasks/OnFailureListener.html{% endsetvar %} {% setvar doc_root_path %}/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_java_switcher2.md" %}

public interface OnFailureListener


Listener called when a Task fails with an exception.

See also
addOnFailureListener

Summary

Public methods

abstract void

Called when the Task fails with an exception.

Public methods

onFailure

abstract void onFailure(@NonNull Exception e)

Called when the Task fails with an exception.

Parameters
@NonNull Exception e

the exception that caused the Task to fail. Never null