Panic and kill the current process
In your gradle file
Follow this guide on how to set up your environment for GitHub packages.
plugins {
id("no.ghpkg") version "0.3.3"
}
repositories {
git.hub("telenornorway", "panic.kt")
// or <.. the below> if you're spicy 🌶️
// git.hub("telenornorway")
}
dependencies {
implementation("no.telenor.kt:panic:<VERSION HERE>")
}
import no.telenor.kt.panic
panic("Something went wrong", ex)