public void setTargetException(Exception targetException) {
		Assert.notNull(targetException, "The provided targetException must not be null.");
		this.targetException = targetException;
		this.status = TargetStatus.ERROR;
	}
Sets the exception in case an error occurred during targeting. Will also set the respective {@link TargetStatus}
to {@link TargetStatus#ERROR}.

@param targetException Must not be null.
spring-xd-shell/src/main/java/org/springframework/xd/shell/Target.java