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
FaunaException
to 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 newNullDocumentException
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.
-
-
-
Constructor Detail
-
NullDocumentException
public NullDocumentException(java.lang.String id, Module coll, java.lang.String nullCause)
Constructs a newNullDocumentException
with the specified document ID, collection, and cause.- Parameters:
id
- The ID of the null document.coll
- TheModule
representing the collection of the document.nullCause
- AString
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, ornull
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.
-
-