Docummentation + unused exception removal
This commit is contained in:
parent
ad75ed65e5
commit
965833ec58
|
@ -53,13 +53,6 @@ sealed class CompactBlockProcessorException(message: String, cause: Throwable? =
|
|||
|
||||
class FailedReorgRepair(message: String) : CompactBlockProcessorException(message)
|
||||
|
||||
class Uninitialized(cause: Throwable? = null) : CompactBlockProcessorException(
|
||||
"Cannot process blocks because the wallet has not been" +
|
||||
" initialized. Verify that the seed phrase was properly created or imported. If so, then this problem" +
|
||||
" can be fixed by re-importing the wallet.",
|
||||
cause
|
||||
)
|
||||
|
||||
data object NoAccount : CompactBlockProcessorException(
|
||||
"Attempting to scan without an account. This is probably a setup error or a race condition."
|
||||
) {
|
||||
|
|
|
@ -154,7 +154,7 @@ internal class TypesafeBackendImpl(private val backend: Backend) : TypesafeBacke
|
|||
val ret = backend.initDataDb(seed)
|
||||
when (ret) {
|
||||
1 -> throw InitializeException.SeedRequired
|
||||
0 -> {}
|
||||
0 -> { /* Successful case - no action needed */ }
|
||||
-1 -> error("Rust backend only uses -1 as an error sentinel")
|
||||
else -> error("Rust backend used a code that needs to be defined here")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue