Fauna v10 .NET/C# Driver 1.0.0
 
Loading...
Searching...
No Matches
NullDocumentException.cs
Go to the documentation of this file.
1using Fauna.Types;
2
3namespace Fauna.Exceptions;
4
8public class NullDocumentException : Exception
9{
13 public string? Id { get; }
14
18 public string? Name { get; }
19
23 public Module Collection { get; }
24
28 public string Cause { get; }
29
37 public NullDocumentException(string? id, string? name, Module collection, string cause) : base($"Document {id ?? name} in collection {collection.Name} is null: {cause}")
38 {
39 Id = id;
40 Name = name;
41 Collection = collection;
42 Cause = cause;
43 }
44}
An exception representing a case when a document cannot be materialized because it does not exist.
NullDocumentException(string? id, string? name, Module collection, string cause)
Initializes a new instance of the NullDocumentException class.
string? Name
The name associated with the document. In the case of user documents, this will be null.
string Cause
The cause for the null document.
string? Id
The ID associated with the document. In the case of named documents, this will be null.
Module Collection
The collection to which the document belongs.
Represents a module, a singleton object grouping related functionalities. Modules are serialized as @...
Definition Module.cs:8