# GrapeCity.Enterprise.Data.Expressions.Evaluation.VariantError.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_VariantError__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.VariantError.#ctor*">VariantError Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Enterprise_Data_Expressions_Evaluation_VariantError__ctor_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.VariantError.#ctor*"></a>
<h4 id="GrapeCity_Enterprise_Data_Expressions_Evaluation_VariantError__ctor_System_String_GrapeCity_Enterprise_Data_Expressions_Evaluation_ErrorCode_" data-uid="GrapeCity.Enterprise.Data.Expressions.Evaluation.VariantError.#ctor(System.String,GrapeCity.Enterprise.Data.Expressions.Evaluation.ErrorCode)">VariantError(string, ErrorCode)</h4>
<div class="markdown level1 summary"><p>Represents error information for Variant Error types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public VariantError(string message, ErrorCode errorCode = ErrorCode.InvalidOperation)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Enterprise.Data.Expressions.Evaluation.ErrorCode.html">ErrorCode</a></td>
      <td><span class="parametername">errorCode</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
