Pattern: Throwing exception in main
Issue: -
An exception should only be thrown if it can be handled by a "higher" function.
Example of incorrect code:
fun main(args: Array<String>) {
// ...
throw IOException() // exception should not be thrown here
}