Igor Milakovic
02/15/2022, 10:33 PMinterface SignInUseCase {
@Throws(Exception::class)
suspend fun execute(email: String, password: String): Whatever
}
When I call this from iOS, I get
signInUseCase.execute(email: email, password: password) { whatever, error in
// Handle completion
}
Is there a way to have a custom error here, instead of NSError? Ideally, I'd like to have maybe a class or data class
data class Error(
val title: String
val detail: String
}
Tim Oltjenbruns
02/15/2022, 11:00 PMIgor Milakovic
02/15/2022, 11:02 PMTim Oltjenbruns
02/15/2022, 11:03 PMIgor Milakovic
02/15/2022, 11:04 PMTim Oltjenbruns
02/15/2022, 11:05 PMIgor Milakovic
02/15/2022, 11:06 PMTim Oltjenbruns
02/15/2022, 11:06 PMIgor Milakovic
02/15/2022, 11:06 PMTim Oltjenbruns
02/15/2022, 11:06 PMIgor Milakovic
02/15/2022, 11:07 PMTim Oltjenbruns
02/15/2022, 11:07 PMIgor Milakovic
02/15/2022, 11:08 PMTim Oltjenbruns
02/15/2022, 11:08 PMGuilherme Delgado
02/16/2022, 11:58 AMIgor Milakovic
02/16/2022, 4:25 PM