title: Kotlin checked exceptions alternative
body: <p>Since Kotlin doesn't support checked exceptions then how to make a programmer aware that a method may throw exception</p>
  
  <p>Simple example:</p>
  
  <pre><code>class Calculator (value: Int = 0) {
  
      fun divide (dividend: BigDecimal, divider: BigDecimal) : BigDecimal {
          return dividend / divider
      }
  }
  </code></pre>
  
  <p>Obviously the divide method may throw <code>java.lang.ArithmeticException: Division by zero</code> exception and the creator of the library needs to warn the user of the class to put the invoke in a <code>try-catch</code> clause</p>
  
  <p>What's the mechanism for that awareness in Kotlin?</p>