func New(m string) error {
	return errors.New(m)
}
New returns a new error
package errors
import (
	"fmt"
	"github.com/pkg/errors"
)
var (
	ErrMissingAnnotations = errors.New("ingress rule without annotations")
	ErrInvalidAnnotationName = errors.New("invalid annotation name")
)
func NewInvalidAnnotationContent(name string, val interface{}) error {
	return InvalidContent{
		Name: fmt.Sprintf("the annotation %v does not contain a valid value (%v)", name, val),
	}
}
func NewLocationDenied(reason string) error {
	return LocationDenied{
		Reason: errors.Errorf("Location denied, reason: %v", reason),
	}
}
type InvalidContent struct {
	Name string
}
func (e InvalidContent) Error() string {
	return e.Name
}
type LocationDenied struct {
	Reason error
}
func (e LocationDenied) Error() string {
	return e.Reason.Error()
}
func IsLocationDenied(e error) bool {
	_, ok := e.(LocationDenied)
	return ok
}
func IsMissingAnnotations(e error) bool {
	return e == ErrMissingAnnotations
}
func IsInvalidContent(e error) bool {
	_, ok := e.(InvalidContent)
	return ok
}