problemOf

fun problemOf(failure: Throwable, context: String? = null, unexpected: (Throwable) -> Problem = ::unexpected): Problem

The problem failure is answered with on a route of context (null outside one): what the framework knows, else the first mapper's, else unexpected's.