# Class PersistenceProviderQueryException OptimaJet.Workflow.Core.Fault.PersistenceProviderQueryException Represents an exception raised for persistence-provider query failures and carries flags that describe whether such failures can be retried or recovered. Namespace: [OptimaJet.Workflow.Core.Fault](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/) ```csharp public class PersistenceProviderQueryException : Exception, ISerializable ``` ## Type Hierarchy - [Exception](https://learn.microsoft.com/dotnet/api/system.exception) - PersistenceProviderQueryException Current type - Implemented interfaces - [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable) ## Constructors `public PersistenceProviderQueryException(bool isRetryAllowed, bool isRetrievableError, Exception exception)` Initializes a new instance of the [PersistenceProviderQueryException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/PersistenceProviderQueryException/) class. ### Parameters | Name | Type | Description | | --- | --- | --- | | `isRetryAllowed` | `Boolean` | A value that indicates whether a retry is allowed. | | `isRetrievableError` | `Boolean` | A value that indicates whether the error is retrievable. | | `exception` | `Exception` | The exception that is wrapped as the inner exception. | ## Properties `public bool IsRetryAllowed { get; }` Gets a value indicating whether retry logic should treat this failure as retryable. `public bool IsRetrievableError { get; }` Gets a value indicating whether the error is considered retrievable. [Previous ParameterNotFoundException](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/ParameterNotFoundException/) [Next PersistenceProviderQueryExceptionExtensions](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Fault/PersistenceProviderQueryExceptionExtensions/)