# GrapeCity.Documents.Barcode.BarCodeException

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Barcode_BarCodeException" data-uid="GrapeCity.Documents.Barcode.BarCodeException" class="text-break">BarCodeException Class
</h1>
  <div class="markdown level0 summary"><p>The exception thrown when an error is caused by an inapplicable value of the barcode control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.exception">Exception</a></div>
    <div class="level2"><span class="xref">BarCodeException</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Barcode.html">GrapeCity.Documents.Barcode</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Barcode.dll</h6>
  <h5 id="GrapeCity_Documents_Barcode_BarCodeException_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BarCodeException : Exception, ISerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BarCodeException
    Inherits Exception
    Implements ISerializable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Barcode_BarCodeException__ctor" data-uid="GrapeCity.Documents.Barcode.BarCodeException.#ctor">
          <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.-ctor.html#GrapeCity_Documents_Barcode_BarCodeException__ctor">BarCodeException()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.html">BarCodeException</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Barcode_BarCodeException__ctor_System_String_" data-uid="GrapeCity.Documents.Barcode.BarCodeException.#ctor(System.String)">
          <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.-ctor.html#GrapeCity_Documents_Barcode_BarCodeException__ctor_System_String_">BarCodeException(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.html">BarCodeException</a> class with a specified error message.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Barcode_BarCodeException__ctor_System_String_System_Exception_" data-uid="GrapeCity.Documents.Barcode.BarCodeException.#ctor(System.String,System.Exception)">
          <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.-ctor.html#GrapeCity_Documents_Barcode_BarCodeException__ctor_System_String_System_Exception_">BarCodeException(string, Exception)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.html">BarCodeException</a> class with a specified error message and a reference to the inner exception that is the cause of this exception.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Barcode_BarCodeException_ErrorCode" data-uid="GrapeCity.Documents.Barcode.BarCodeException.ErrorCode">
          <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.ErrorCode.html#GrapeCity_Documents_Barcode_BarCodeException_ErrorCode">ErrorCode</a>
        </td>
        <td class="markdown level1 summary"><p>Internal error code</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Barcode_BarCodeException_Message" data-uid="GrapeCity.Documents.Barcode.BarCodeException.Message">
          <a class="xref" href="GrapeCity.Documents.Barcode.BarCodeException.Message.html#GrapeCity_Documents_Barcode_BarCodeException_Message">Message</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a message that describes the current exception.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
