# GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Rdl_Persistence_PersistenceException__ctor_" data-uid="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.#ctor*">PersistenceException Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Persistence_PersistenceException__ctor_" data-uid="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Persistence_PersistenceException__ctor_GrapeCity_ActiveReports_Rdl_Persistence_PersistenceException_ErrorCodes_System_String_" data-uid="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.#ctor(GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.ErrorCodes,System.String)">PersistenceException(ErrorCodes, string)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.html">PersistenceException</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PersistenceException(PersistenceException.ErrorCodes errorCode, string message)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.html">PersistenceException</a>.<a class="xref" href="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.ErrorCodes.html">ErrorCodes</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>An <a class="xref" href="GrapeCity.ActiveReports.Rdl.Persistence.PersistenceException.ErrorCodes.html">PersistenceException.ErrorCodes</a> value indicating the type of persistence error.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value indicating the message that describes the error.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
