public static <C, T extends Throwable> @NonNull ExceptionHandlerRegistration<C, ? extends T> of(
            final @NonNull TypeToken<T> exceptionType,
            final @NonNull ExceptionHandler<C, ? extends T> exceptionHandler
    ) {
       return ExceptionHandlerRegistration.<C, T>builder(exceptionType).exceptionHandler(exceptionHandler).build();
    }
Returns a new registration.

@param <C>              the command sender type
@param <T>              the exception type
@param exceptionType    the type handled by the exception handler
@param exceptionHandler the exception handler
@return the created registration
cloud-core/src/main/java/org/incendo/cloud/exception/handling/ExceptionHandlerRegistration.java