You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: hcserror.go
    path of file: ./repos/docker-ce/components/engine/vendor/github.com/Microsoft/hcsshim/internal/hcserror
    
    the code of the file until where you have to start completion: package hcserror

import (
	"fmt"
	"syscall"
)

const ERROR_GEN_FAILURE = syscall.Errno(31)

type HcsError struct {
	title string
	rest  string
	Err   error
}

func (
    
func New(err error, title, rest string) error {
	// Pass through DLL errors directly since they do not originate from HCS.
	if _, ok := err.(*syscall.DLLError); ok {
		return err
	}
	return &HcsError{title, rest, err}
}