Class DatabaseEntityNotFoundException
- Namespace
- FishMMO.Database.Exceptions
- Assembly
- FishMMO-DB.dll
Exception thrown when a requested entity or record is not found in the database. Not transient - indicates the data does not exist.
public sealed class DatabaseEntityNotFoundException : DatabaseException, ISerializable
- Inheritance
-
DatabaseEntityNotFoundException
- Implements
- Inherited Members
Constructors
DatabaseEntityNotFoundException(string, string)
Initializes a new instance of the DatabaseEntityNotFoundException class.
public DatabaseEntityNotFoundException(string entityType, string identifier)
Parameters
entityTypestringSanitized entity type name.
identifierstringSanitized identifier (e.g., username without value, "by name").
DatabaseEntityNotFoundException(string, string, string)
Initializes a new instance of the DatabaseEntityNotFoundException class with custom message.
public DatabaseEntityNotFoundException(string entityType, string identifier, string safeMessage)
Parameters
entityTypestringSanitized entity type name.
identifierstringSanitized identifier.
safeMessagestringCustom safe message for clients.
Properties
EntityType
Gets the sanitized entity type that was not found (e.g., "Character", "Account").
public string EntityType { get; }
Property Value
Identifier
Gets the sanitized identifier used in the search.
public string Identifier { get; }