libtd-ktx / kotlinx.telegram.coroutines / testReturnError
testReturnError
suspend fun
TelegramFlow
.testReturnError(error:
Error
?):
Error
Suspend function, which returns the specified error and ensures that the Error object is used; for testing only. This is an offline method. Can be called before authorization. Can be called synchronously.
Parameters
error
- The error to be returned.
Return Error An object of this type can be returned on every function call, in case of an error.