Class InvalidContentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.zucca_ops.kustomtrace.exceptions.KustomException
dev.zucca_ops.kustomtrace.exceptions.InvalidContentException
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class dev.zucca_ops.kustomtrace.exceptions.KustomException
path -
Constructor Summary
ConstructorsConstructorDescriptionInvalidContentException(Path path) Constructs a new InvalidContentException with a default message indicating invalid content for the specified file path.InvalidContentException(Path path, Throwable cause) Constructs a new InvalidContentException with an associated path, and cause. -
Method Summary
Methods inherited from class dev.zucca_ops.kustomtrace.exceptions.KustomException
getPathMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidContentException
Constructs a new InvalidContentException with a default message indicating invalid content for the specified file path.- Parameters:
path- The file systemPathof the file with invalid content.
-
InvalidContentException
Constructs a new InvalidContentException with an associated path, and cause.- Parameters:
path- The file systemPathrelated to the exception.cause- The underlying cause of this exception.
-