func NewError(errorType ErrorType, parameters ...wparams.ParamStorer) Error {
	return newGenericError(nil, errorType, wparams.NewParamStorer(parameters...))
}
NewError returns new instance of an error of the specified type with provided parameters.
package errors
import (
	"github.com/palantir/pkg/uuid"
	wparams "github.com/palantir/witchcraft-go-params"
)
type Error interface {
	error
	Code() ErrorCode
	Name() string
	InstanceID() uuid.UUID
	wparams.ParamStorer
}