code: public static<R> Result<R> err(Result<?> pdr) {
  		return new Result<R>(null,pdr.status,pdr.details,pdr.variables);
  	}
docs: Create Error from status and Details of previous Result (and not data)
  @param pdr
  @return