Hexa
10/19/2018, 9:16 AM@Throws(NoSuchAlgorithmException::class)
private fun generateKeyPair(): KeyPair {
}
diesieben07
10/19/2018, 9:18 AMHexa
10/19/2018, 9:18 AMdiesieben07
10/19/2018, 9:19 AMHexa
10/19/2018, 9:21 AMprivate fun generateKeyPair(): KeyPair {
}
diesieben07
10/19/2018, 9:22 AMThrows
annotationHexa
10/19/2018, 9:31 AMgenerateKeyPair
function and it throws an exception, does Kotlin just ignore it?diesieben07
10/19/2018, 9:32 AMursus
10/19/2018, 2:31 PMdiesieben07
10/19/2018, 2:44 PMSam
10/19/2018, 2:48 PMursus
10/19/2018, 2:51 PMdiesieben07
10/19/2018, 2:53 PMursus
10/19/2018, 2:54 PMdiesieben07
10/19/2018, 2:55 PMursus
10/19/2018, 2:55 PMdiesieben07
10/19/2018, 2:56 PMursus
10/19/2018, 2:57 PMdiesieben07
10/19/2018, 2:57 PMcatch
blocks.ursus
10/19/2018, 2:58 PMdiesieben07
10/19/2018, 2:58 PMInputStream
, can that fail or not? The answer depends on where the data comes from. Is it a ByteArrayInputStream
? Then it can't fail.try {
// stuff
} catch (IOException e) {
throw AssertionError("impossible");
}
ursus
10/19/2018, 3:00 PMdiesieben07
10/19/2018, 3:04 PMursus
10/19/2018, 3:05 PMdiesieben07
10/19/2018, 3:06 PMursus
10/19/2018, 3:07 PM