...

Package kusterr

import "sigs.k8s.io/kustomize/api/internal/kusterr"
Overview
Index

Overview ▾

Package error has contextual error types.

func Handler

func Handler(e error, path string) error

Handler handles YamlFormatError

func IsMalformedYAMLError

func IsMalformedYAMLError(e error) bool

type MalformedYamlError

MalformedYamlError represents an error that occurred while trying to decode a given YAML.

type MalformedYamlError struct {
    Path     string
    ErrorMsg string
}

func (MalformedYamlError) Error

func (e MalformedYamlError) Error() string

type YamlFormatError

YamlFormatError represents error with yaml file name where json/yaml format error happens.

type YamlFormatError struct {
    Path     string
    ErrorMsg string
}

func (YamlFormatError) Error

func (e YamlFormatError) Error() string