Stay organized with collections
Save and categorize content based on your preferences.
class Operation.State.FAILURE : Operation.State
This represents an Operation
which has failed.
Summary
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# Operation.State.FAILURE\n=======================\n\nArtifact: [androidx.work:work-runtime](/jetpack/androidx/releases/work) \n[View Source](https://cs.android.com/search?q=file:androidx/work/Operation.java+class:androidx.work.Operation.State.FAILURE) \nAdded in [1.0.0](/jetpack/androidx/releases/work#1.0.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/work/Operation.State.FAILURE \"View this page in Java\")\n\n\n```\nclass Operation.State.FAILURE : Operation.State\n```\n\n\u003cbr /\u003e\n\n|---|---|--------------------------------------------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||\n| ↳ | [androidx.work.Operation.State](/reference/kotlin/androidx/work/Operation.State) ||\n| | ↳ | [androidx.work.Operation.State.FAILURE](/reference/kotlin/androidx/work/Operation.State.FAILURE) |\n\n*** ** * ** ***\n\nThis represents an [Operation](/reference/kotlin/androidx/work/Operation) which has failed.\n\nSummary\n-------\n\n| ### Public constructors |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [FAILURE](/reference/kotlin/androidx/work/Operation.State.FAILURE#FAILURE(java.lang.Throwable))`(exception: `[Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)`)` |\n\n| ### Public functions |\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) | [getThrowable](/reference/kotlin/androidx/work/Operation.State.FAILURE#getThrowable())`()` |\n| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](/reference/kotlin/androidx/work/Operation.State.FAILURE#toString())`()` |\n\nPublic constructors\n-------------------\n\n### FAILURE\n\nAdded in [1.0.0](/jetpack/androidx/releases/work#1.0.0) \n\n```\nFAILURE(exception: Throwable)\n``` \n\nPublic functions\n----------------\n\n### getThrowable\n\nAdded in [1.0.0](/jetpack/androidx/releases/work#1.0.0) \n\n```\nfun getThrowable(): Throwable\n``` \n\n| Returns |\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) | The [Throwable](https://developer.android.com/reference/java/lang/Throwable.html) which caused the [Operation](/reference/kotlin/androidx/work/Operation) to fail. |\n\n### toString\n\n```\nfun toString(): String\n```"]]