# FarPoint.Win.SuperEdit.ErrorEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.ErrorEventArgs.#ctor*">ErrorEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.ErrorEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_System_Int32_" data-uid="FarPoint.Win.SuperEdit.ErrorEventArgs.#ctor(System.Int32)">ErrorEventArgs(int)</h4>
<div class="markdown level1 summary"><p>Occurs when an error state is created by the control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ErrorEventArgs(int errorCode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorCode As Integer)</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.int32">int</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>Error code that is being raised</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_System_Int32__examples">Examples</h5>
<pre><code class="lang-csharp">private void control_UserError(object sender, FarPoint.Win.Input.ErrorEventArgs e)
{
Messagebox.Show(Convert.ToString(e.ErrorCode));
}</code></pre>
<pre><code class="lang-csharp">Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.ErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode);
End Sub</code></pre>



<a id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.ErrorEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_System_Int32_System_String_" data-uid="FarPoint.Win.SuperEdit.ErrorEventArgs.#ctor(System.Int32,System.String)">ErrorEventArgs(int, string)</h4>
<div class="markdown level1 summary"><p>Occurs when an error state is created by the control</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ErrorEventArgs(int errorCode, string errorText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorCode As Integer, errorText 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.int32">int</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>The error code for the error that is being raised</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">errorText</span></td>
      <td><p>Additional error information for the error that is being raised</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="FarPoint_Win_SuperEdit_ErrorEventArgs__ctor_System_Int32_System_String__examples">Examples</h5>
<pre><code class="lang-csharp">private void control_UserError(object sender, FarPoint.Win.Input.ErrorEventArgs e)
{
Messagebox.Show(Convert.ToString(e.ErrorCode) + e.ErrorInfo);
}</code></pre>
<pre><code class="lang-csharp">Private Sub control_UserError(ByVal sender As Object, ByVal e As FarPoint.Win.Input.ErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode + e.ErrorInfo);
End Sub</code></pre>

</div>
