Skip to content

Instantly share code, notes, and snippets.

@ghahramani
Created July 6, 2019 21:16
Show Gist options
  • Save ghahramani/76b1eadfb7659e4902761f275d0406f1 to your computer and use it in GitHub Desktop.
Save ghahramani/76b1eadfb7659e4902761f275d0406f1 to your computer and use it in GitHub Desktop.
An interface to for exception handlers
interface ProblemExceptionHandler<T : Throwable> {
fun supports(clazz: Throwable): Boolean
fun generateProblemVM(e: T): ProblemVM
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment