Skip to content

Instantly share code, notes, and snippets.

View jbhntr861's full-sized avatar

jbhntr861

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