public <T extends Throwable> @NonNull ExceptionContext<C, T> createContext(
            final @NonNull CommandContext<C> context,
            final @NonNull T exception
    ) {
        return new ExceptionContext.ExceptionContextImpl<>(exception, context, this.controller);
    }
Creates a new exception context.

@param <T>       the exception type
@param context   the command context
@param exception the exception
@return the created context
cloud-core/src/main/java/org/incendo/cloud/exception/handling/ExceptionContextFactory.java