Handling Errors
How to Handle Errors
val simprintsLauncher = registerForActivityResult(SimprintsContract()) { response ->
if (response.resultCode != Activity.RESULT_OK) {
// the result code will correspond to one of the pre-defined constants
when (response.resultCode) {
Constants.SIMPRINTS_INVALID_PROJECT_ID -> {
// the error is due to invalid project ID
}
// handle other codes
}
}
// handle response data
}Data Authentication Errors
Configuration Errors
Other errors:
Last updated
Was this helpful?