rook
05/25/2018, 7:38 PMwhen(e) {
is String, Int -> /*do stuff*/
}
It doesn’t appear that I can accomplish the above. Is that correct?bissell
05/25/2018, 7:42 PMis String, is Int -> /*do stuff*/ but I don't think the compiler is sophisticated enough to let you do operations on e common to both the String and Int APIs, so it's not all that useful. you just wind up with an Any type in /*do stuff*/rook
05/25/2018, 7:43 PMe is one of two types. The second type calls for initialization, for some weird reasonrook
05/25/2018, 7:48 PMException e is ConnectException or SocketTimeoutExceptionrook
05/25/2018, 7:52 PMis before the second one 🙄🤦♂️bissell
05/25/2018, 8:36 PM