# FarPoint.Win.SuperEdit.UserErrorEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.UserErrorEventArgs.#ctor*">UserErrorEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.UserErrorEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_FarPoint_Win_SuperEdit_UserErrorCode_" data-uid="FarPoint.Win.SuperEdit.UserErrorEventArgs.#ctor(FarPoint.Win.SuperEdit.UserErrorCode)">UserErrorEventArgs(UserErrorCode)</h4>
<div class="markdown level1 summary"><p>Occurs when an user 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 UserErrorEventArgs(UserErrorCode errorCode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorCode As UserErrorCode)</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="FarPoint.Win.SuperEdit.UserErrorCode.html">UserErrorCode</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>The user error code that is being raised</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_FarPoint_Win_SuperEdit_UserErrorCode__examples">Examples</h5>
<pre><code class="lang-csharp">private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs 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.UserErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode);
End Sub</code></pre>



<a id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_" data-uid="FarPoint.Win.SuperEdit.UserErrorEventArgs.#ctor*"></a>
<h4 id="FarPoint_Win_SuperEdit_UserErrorEventArgs__ctor_FarPoint_Win_SuperEdit_UserErrorCode_System_String_" data-uid="FarPoint.Win.SuperEdit.UserErrorEventArgs.#ctor(FarPoint.Win.SuperEdit.UserErrorCode,System.String)">UserErrorEventArgs(UserErrorCode, string)</h4>
<div class="markdown level1 summary"><p>Occurs when a user 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 UserErrorEventArgs(UserErrorCode errorCode, string errorText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorCode As UserErrorCode, 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="FarPoint.Win.SuperEdit.UserErrorCode.html">UserErrorCode</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td><p>The user 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_UserErrorEventArgs__ctor_FarPoint_Win_SuperEdit_UserErrorCode_System_String__examples">Examples</h5>
<pre><code class="lang-csharp">private void control_UserError(object sender, FarPoint.Win.Input.UserErrorEventArgs 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.UserErrorEventArgs) Handles control.UserError
  Messagebox.Show(e.ErrorCode + e.ErrorInfo);
End Sub</code></pre>

</div>
