ValV
10/06/2018, 10:39 AMIntegerStringConverter
that trows exceptions like java.lang.NumberFormatException
, is it possible to catch or suppress them without try ... catch
block?kingsley
10/11/2018, 1:21 PMString#toIntOrNull
insteadkingsley
10/11/2018, 1:21 PMValV
10/11/2018, 3:58 PMTextFormatter
(and overriding TFX functions, and writing custom TableCell
) to prevent this exception ever happen. But I could not find how to push back those exceptions without user interaction. I.e. when such exception arises, and we see the call stack, exiting this exception dialog, program returns to the moment before the exception. So I supposed that it can be done automatically and silentlykingsley
10/11/2018, 4:17 PMnull
instead of catching exceptions which is much more expensiveValV
10/11/2018, 5:15 PMhttps://kotlinlang.slack.com/files/UCQRGDEB1/FD87A5CMP/screenshot_from_2018-10-07_08-31-50.png▾
ValV
10/11/2018, 5:16 PMValV
10/11/2018, 5:18 PMtry ... catch
, and without avoiding this error changing logic. I.e. I want this error to happen, but silently