Slide 11
Slide 11 text
Use case 2: Exception
• After throw Exception, program will end
• It is more accurate to use “Nothing” as return type to indicate it never return
Assume we would Load some data from Database,
and throw Exception if it return null
(Video example is uploaded here: https://youtu.be/HG210SN4_iI)