@Override
	public String getMessage() {
		if (candidateTypes.length == 1) {
			return String.format("Could not find module with name '%s' and type '%s'", name,
					candidateTypes[0]);
		}
		else {
			return String.format("Could not find module with name '%s' and type among %s", name,
					Arrays.asList(candidateTypes));
		}
	}
Create a new exception.

@param name the module name that was referenced, but could not be found
@param candidateTypes the type(s) of the module that was expected but could not be found
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/module/NoSuchModuleException.java