Class PersistenceStoreException
Thrown by a persistence-store backend (e.g. an HTTP-backed or relational structured store) when a call to the backing service fails: a non-success response, a transport-level failure that survived every retry, or a request timeout.
Inherited Members
Namespace: Serenity.Persistence.Domain.Exceptions
Assembly: Serenity.Global.Domain.dll
Syntax
public class PersistenceStoreException : Exception, ISerializable, _Exception
Remarks
Lives in the Persistence domain (rather than any single feature's Application layer) so every feature built on IStructuredStore can catch a single, backend-agnostic base type. Feature-specific exceptions (e.g. a leaderboard's store exception) derive from this type instead of duplicating it.
Constructors
PersistenceStoreException(string)
Creates a new PersistenceStoreException with the specified message.
Declaration
public PersistenceStoreException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | A message describing the failed call. |
PersistenceStoreException(string, Exception)
Creates a new PersistenceStoreException with the specified message and inner exception.
Declaration
public PersistenceStoreException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | A message describing the failed call. |
| Exception | innerException | The underlying exception, when the failure originated from one. |