Derek Berner
05/15/2019, 4:10 PMTry
using arrow-fx's fx
syntax? Here's what I've got: Try<Unit> {
when (response.status) {
InternalServerError -> throw AccountsGatewayException("Failed to get info for notification_id ${notificationId.value} on account ${accountId.value}. ${response.status.description}")
Gone -> throw NotificationDeletedException()
}
}.fromTry { e -> e }.bind()