Package com.fauna.exception
Class NullDocumentException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.NullDocumentException
-
- All Implemented Interfaces:
java.io.Serializable
public class NullDocumentException extends FaunaException
Exception representing a error in Fauna.This exception is thrown when a document is null in Fauna, providing details about the document ID, its collection, and the reason it is null. Extends
FaunaExceptionto provide information specific to null document scenarios.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NullDocumentException(java.lang.String id, Module coll, java.lang.String nullCause)Constructs a newNullDocumentExceptionwith the specified document ID, collection, and cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModulegetCollection()Retrieves the collection associated with the null document.java.lang.StringgetId()Retrieves the ID of the null document.java.lang.StringgetNullCause()Retrieves the cause for the document being null.
-
-
-
Constructor Detail
-
NullDocumentException
public NullDocumentException(java.lang.String id, Module coll, java.lang.String nullCause)Constructs a newNullDocumentExceptionwith the specified document ID, collection, and cause.- Parameters:
id- The ID of the null document.coll- TheModulerepresenting the collection of the document.nullCause- AStringdescribing the reason the document is null.
-
-
Method Detail
-
getId
public java.lang.String getId()
Retrieves the ID of the null document.- Returns:
- A
Stringrepresenting the document ID.
-
getCollection
public Module getCollection()
Retrieves the collection associated with the null document.- Returns:
- A
Modulerepresenting the document's collection, ornullif unknown.
-
getNullCause
public java.lang.String getNullCause()
Retrieves the cause for the document being null.- Returns:
- A
Stringdescribing why the document is null.
-
-