# C1.WPF.BarCode.C1BarCode.EncodingException

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_BarCode_C1BarCode_EncodingException_" data-uid="C1.WPF.BarCode.C1BarCode.EncodingException*">EncodingException Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_BarCode_C1BarCode_EncodingException_" data-uid="C1.WPF.BarCode.C1BarCode.EncodingException*"></a>
<h4 id="C1_WPF_BarCode_C1BarCode_EncodingException" data-uid="C1.WPF.BarCode.C1BarCode.EncodingException">EncodingException</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.BarCode.BarCodeException.html">BarCodeException</a> that prevented the <a class="xref" href="C1.WPF.BarCode.C1BarCode.Text.html#C1_WPF_BarCode_C1BarCode_Text">Text</a> from being encoded.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public BarCodeException EncodingException { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property EncodingException As BarCodeException</code></pre>
</div>
<h5 id="C1_WPF_BarCode_C1BarCode_EncodingException_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Most encodings have limitations that determine what type of text it can represent. For example,
some are numeric-only and some require text of a specific length.</p>
<p>If the value of the <a class="xref" href="C1.WPF.BarCode.C1BarCode.Text.html#C1_WPF_BarCode_C1BarCode_Text">Text</a> property cannot be represented using the current
<a class="xref" href="C1.WPF.BarCode.C1BarCode.CodeType.html#C1_WPF_BarCode_C1BarCode_CodeType">CodeType</a>, then the error message will be shown in the control.</p>
<p>In this case, the <b>EncodingException</b> property returns details about the exception
that prevented the bar code from being generated.</p>
</div>
</div>
