{% setvar book_path %}/android/reference/kotlin/_book.yaml{% endsetvar %} {% 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/_kotlin_switcher2.md" %}

interface OnFailureListener


Listener called when a Task fails with an exception.

See also
addOnFailureListener

Summary

Public functions

Unit

Called when the Task fails with an exception.

Public functions

onFailure

fun onFailure(e: Exception): Unit

Called when the Task fails with an exception.

Parameters
e: Exception

the exception that caused the Task to fail. Never null