package kusterr

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

Package error has contextual error types.

Index

Functions

func Handler

func Handler(e error, path string) error

Handler handles YamlFormatError

func IsMalformedYAMLError

func IsMalformedYAMLError(e error) bool

Types

type MalformedYamlError

type MalformedYamlError struct {
	Path     string
	ErrorMsg string
}

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

func (MalformedYamlError) Error

func (e MalformedYamlError) Error() string

type YamlFormatError

type YamlFormatError struct {
	Path     string
	ErrorMsg string
}

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

func (YamlFormatError) Error

func (e YamlFormatError) Error() string

Source Files

yamlformaterror.go

Version
v0.20.0 (latest)
Published
Jun 28, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
11 hours ago

Tools for package owners.