# GrapeCity.ActiveReports.BarCodes.BarCodeException.-ctor

## Content

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



<h1 id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor*">BarCodeException Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_GrapeCity_ActiveReports_BarCodes_BarCodeException_ErrorCodes_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor(GrapeCity.ActiveReports.BarCodes.BarCodeException.ErrorCodes)">BarCodeException(ErrorCodes)</h4>
<div class="markdown level1 summary"><p>Creates new <a class="xref" href="GrapeCity.ActiveReports.BarCodes.BarCodeException.html">BarCodeException</a> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BarCodeException(BarCodeException.ErrorCodes errorCode)</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.BarCodes.BarCodeException.html">BarCodeException</a>.<a class="xref" href="GrapeCity.ActiveReports.BarCodes.BarCodeException.ErrorCodes.html">ErrorCodes</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>Error code.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_GrapeCity_ActiveReports_BarCodes_BarCodeException_ErrorCodes_System_Object___" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor(GrapeCity.ActiveReports.BarCodes.BarCodeException.ErrorCodes,System.Object[])">BarCodeException(ErrorCodes, params object[])</h4>
<div class="markdown level1 summary"><p>Creates new <a class="xref" href="GrapeCity.ActiveReports.BarCodes.BarCodeException.html">BarCodeException</a> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BarCodeException(BarCodeException.ErrorCodes errorCode, params object[] messageFormatArgs)</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.BarCodes.BarCodeException.html">BarCodeException</a>.<a class="xref" href="GrapeCity.ActiveReports.BarCodes.BarCodeException.ErrorCodes.html">ErrorCodes</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>Error code.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>[]</td>
      <td><span class="parametername">messageFormatArgs</span></td>
      <td><p>Message formatting arguments.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor*"></a>
<h4 id="GrapeCity_ActiveReports_BarCodes_BarCodeException__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="GrapeCity.ActiveReports.BarCodes.BarCodeException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">BarCodeException(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Enables environments where serialization is required to initialize instances of the <a class="xref" href="GrapeCity.ActiveReports.BarCodes.BarCodeException.html">BarCodeException</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected BarCodeException(SerializationInfo info, StreamingContext context)</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="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
