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

public abstract class KustomException extends Exception
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 Details

    • path

      protected Path 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

      public KustomException(String message, Path path)
      Constructs a new KustomException with the specified detail message and associated path.
      Parameters:
      message - The detail message.
      path - The file system Path related to the exception, may be null.
    • KustomException

      public KustomException(String message, Path path, Throwable cause)
      Constructs a new KustomException with the path, and cause.
      Parameters:
      message - The detail message.
      path - The file system Path related to the exception, may be null.
      cause - The cause of this exception.
  • Method Details

    • getPath

      public Path getPath()
      Gets the file system path associated with this exception.
      Returns:
      The Path, or null if no specific path is associated.