2020-01-15 05:07:00 -08:00
|
|
|
[zcash-android-wallet-sdk](../../index.md) / [cash.z.wallet.sdk](../index.md) / [Synchronizer](index.md) / [onCriticalErrorHandler](./on-critical-error-handler.md)
|
2019-08-30 10:05:02 -07:00
|
|
|
|
|
|
|
# onCriticalErrorHandler
|
|
|
|
|
|
|
|
`abstract var onCriticalErrorHandler: ((`[`Throwable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)`?) -> `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)?`
|
|
|
|
|
2020-01-15 05:07:00 -08:00
|
|
|
Gets or sets a global error handler. This is a useful hook for handling unexpected critical
|
|
|
|
errors.
|
2019-08-30 10:05:02 -07:00
|
|
|
|
|
|
|
**Return**
|
2020-01-15 05:07:00 -08:00
|
|
|
true when the error has been handled and the Synchronizer should attempt to continue.
|
|
|
|
False when the error is unrecoverable and the Synchronizer should [stop](stop.md).
|
2019-08-30 10:05:02 -07:00
|
|
|
|