# org.jpedal.jbig2.JBIG2Exception.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="org_jpedal_jbig2_JBIG2Exception__ctor_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor*">JBIG2Exception Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="org_jpedal_jbig2_JBIG2Exception__ctor_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor*"></a>
<h4 id="org_jpedal_jbig2_JBIG2Exception__ctor_System_Exception_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor(System.Exception)">JBIG2Exception(Exception)</h4>
<div class="markdown level1 summary"></div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JBIG2Exception(Exception ex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ex As Exception)</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.exception">Exception</a></td>
      <td><span class="parametername">ex</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="org_jpedal_jbig2_JBIG2Exception__ctor_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor*"></a>
<h4 id="org_jpedal_jbig2_JBIG2Exception__ctor" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor">JBIG2Exception()</h4>
<div class="markdown level1 summary"><p>Constructs a <code>JBIGException</code> whithout a message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JBIG2Exception()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="org_jpedal_jbig2_JBIG2Exception__ctor_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor*"></a>
<h4 id="org_jpedal_jbig2_JBIG2Exception__ctor_System_String_" data-uid="org.jpedal.jbig2.JBIG2Exception.#ctor(System.String)">JBIG2Exception(string)</h4>
<div class="markdown level1 summary"><p>Constructs a <pre><code class="lang-csharp">JBIGException</code></pre> with a message.
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public JBIG2Exception(string message)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(message As String)</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.string">string</a></td>
      <td><span class="parametername">message</span></td>
      <td><p>a message describing the exception</p>
</td>
    </tr>
  </tbody>
</table>
</div>
