android-components / mozilla.components.support.migration / AddonMigrationException

AddonMigrationException

class AddonMigrationException : Exception (source)

Wraps AddonMigrationResult in an exception so that it can be returned via Result.Failure.

Constructors

Name Summary
<init> AddonMigrationException(failure: Failure)
Wraps AddonMigrationResult in an exception so that it can be returned via Result.Failure.

Properties

Name Summary
failure val failure: Failure
Wrapped AddonMigrationResult indicating exact failure reason.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.
uniqueId fun Exception.uniqueId(): String
Returns a unique identifier for this Throwable