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

FxaMigrationException

class FxaMigrationException : Exception (source)

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

PII note - be careful to not log this exception, as it may contain personal information (wrapped in a JSONException).

Constructors

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

Properties

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

Extension Functions

Name Summary
getStacktraceAsString fun Throwable.getStacktraceAsString(): String
Returns a formatted string of the Throwable.stackTrace.
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