commands.BakuCommandFailure.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of baku Show documentation
Show all versions of baku Show documentation
helps you focus your REST API back-end on the business logic
package com.github.fluidsonic.baku
class BakuCommandFailure(
val code: String,
val userMessage: String,
val developerMessage: String = userMessage,
cause: Throwable? = null
) : Exception(developerMessage, cause) {
companion object {
const val genericUserMessage = "Looks like we're having some trouble right now.\nPlease try again soon."
}
}