actionUnsupported

inline fun actionUnsupported(cause: Throwable? = null, block: () -> String): Nothing(source)

抛出 UnsupportedActionException.

e.g.

actionUnsupported(cause) { "Send message" }