Skip to content

Instantly share code, notes, and snippets.

package com.jbhntr86.sabia
class ErrorHandler {
companion object {
fun handleException(e: Exception) {
when (e) {
is IllegalArgumentException -> {
println("Invalid argument: ${e.message}")
}
is SecurityException -> {