Class NullDocumentException

    • Constructor Summary

      Constructors 
      Constructor Description
      NullDocumentException​(java.lang.String id, Module coll, java.lang.String nullCause)
      Constructs a new NullDocumentException with the specified document ID, collection, and cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Module getCollection()
      Retrieves the collection associated with the null document.
      java.lang.String getId()
      Retrieves the ID of the null document.
      java.lang.String getNullCause()
      Retrieves the cause for the document being null.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NullDocumentException

        public NullDocumentException​(java.lang.String id,
                                     Module coll,
                                     java.lang.String nullCause)
        Constructs a new NullDocumentException with the specified document ID, collection, and cause.
        Parameters:
        id - The ID of the null document.
        coll - The Module representing the collection of the document.
        nullCause - A String describing the reason the document is null.
    • Method Detail

      • getId

        public java.lang.String getId()
        Retrieves the ID of the null document.
        Returns:
        A String representing the document ID.
      • getCollection

        public Module getCollection()
        Retrieves the collection associated with the null document.
        Returns:
        A Module representing the document's collection, or null if unknown.
      • getNullCause

        public java.lang.String getNullCause()
        Retrieves the cause for the document being null.
        Returns:
        A String describing why the document is null.