Class DataNotFoundException
Exception for when an attempt is made to obtain data from a database, but it isn't found. It's a bit more specific than DataException, and sometimes ObjectNotFoundException is not exactly what is meant.
Inheritance
System.Object
DataNotFoundException
Namespace: Galaxon.Core.Exceptions
Assembly: Galaxon.Core.dll
Syntax
public class DataNotFoundException : DataException
Constructors
DataNotFoundException(Nullable<String>, Nullable<Exception>)
Initializes a new instance of the DataNotFoundException class with an error message (optional), and a reference to the inner exception that is the cause of this exception (optional).
Declaration
public DataNotFoundException(string? message = null, Exception? innerException = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Nullable<System.String> | message | |
| System.Nullable<Exception> | innerException |