Class KustomException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.zucca_ops.kustomtrace.exceptions.KustomException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidContentException,InvalidReferenceException,NotAnAppException,UnreferencedFileException
Base class for custom exceptions specific to the KustomTrace application.
Typically indicates an issue encountered during Kustomize structure parsing or graph building.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKustomException(String message, Path path) Constructs a new KustomException with the specified detail message and associated path.KustomException(String message, Path path, Throwable cause) Constructs a new KustomException with the path, and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
path
The file system path primarily associated with this exception, if applicable. Can be null if the exception is not specific to a single file path.
-
-
Constructor Details
-
KustomException
Constructs a new KustomException with the specified detail message and associated path.- Parameters:
message- The detail message.path- The file systemPathrelated to the exception, may be null.
-
KustomException
Constructs a new KustomException with the path, and cause.- Parameters:
message- The detail message.path- The file systemPathrelated to the exception, may be null.cause- The cause of this exception.
-
-
Method Details
-
getPath
Gets the file system path associated with this exception.- Returns:
- The
Path, ornullif no specific path is associated.
-