Table of Contents

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

entityType string

Sanitized entity type name.

identifier string

Sanitized 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

entityType string

Sanitized entity type name.

identifier string

Sanitized identifier.

safeMessage string

Custom 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

string

Identifier

Gets the sanitized identifier used in the search.

public string Identifier { get; }

Property Value

string