Class InvalidContentException

All Implemented Interfaces:
Serializable

public class InvalidContentException extends KustomException
Exception thrown when the content of a Kustomize file (e.g., kustomization.yaml, or a resource YAML/JSON) is found to be invalid or unparsable according to expected structure or syntax.
See Also:
  • Constructor Details

    • InvalidContentException

      public InvalidContentException(Path path)
      Constructs a new InvalidContentException with a default message indicating invalid content for the specified file path.
      Parameters:
      path - The file system Path of the file with invalid content.
    • InvalidContentException

      public InvalidContentException(Path path, Throwable cause)
      Constructs a new InvalidContentException with an associated path, and cause.
      Parameters:
      path - The file system Path related to the exception.
      cause - The underlying cause of this exception.