jw
08/04/2017, 1:16 AMdumptruckman
08/04/2017, 1:17 AMdumptruckman
08/04/2017, 1:17 AMjw
08/04/2017, 1:18 AMdumptruckman
08/04/2017, 1:18 AMdumptruckman
08/04/2017, 1:18 AMagomez
08/04/2017, 1:19 AMEither<Nothing, Void>
dumptruckman
08/04/2017, 1:20 AMthing?.copyThing(name) ?: throw Exception()
timp
08/04/2017, 1:21 AM() -> R
as its last param so you can do
thing?.copyThing(name) { throw Exception() }
agomez
08/04/2017, 1:21 AMcopyThing
may return Void
or throw the exception inside its codedumptruckman
08/04/2017, 1:21 AMdumptruckman
08/04/2017, 1:21 AMtimp
08/04/2017, 1:23 AMdumptruckman
08/04/2017, 1:24 AMkirillrakhman
08/04/2017, 9:09 AMBoolean
and write if (thing?.copyThing(name) != true) throw Exception()
ribesg
08/04/2017, 10:02 AMribesg
08/04/2017, 10:02 AMhorse_badorties
08/04/2017, 10:05 AMribesg
08/04/2017, 10:09 AMribesg
08/04/2017, 10:10 AMribesg
08/04/2017, 10:10 AMribesg
08/04/2017, 10:10 AMribesg
08/04/2017, 10:10 AMribesg
08/04/2017, 10:10 AMribesg
08/04/2017, 10:11 AMhorse_badorties
08/04/2017, 10:11 AMribesg
08/04/2017, 10:12 AMtheField
is of type String
and has value null
ribesg
08/04/2017, 10:13 AMrayt
08/04/2017, 10:21 AMJemo
08/04/2017, 1:06 PM