handlerOf

fun handlerOf(handlers: List<RejectionBinding<*>>, command: Class<*>): RejectionBinding<*>?

The handler among handlers of the rejection of a command of command: the one whose commandType is command itself, else the nearest superclass or interface one names, else a CommandReceipt.Rejected<*> one; null when none handles it.