# C1.C1Preview.C1PrintDocument.ThrowExceptionOnError

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_ThrowExceptionOnError_" data-uid="C1.C1Preview.C1PrintDocument.ThrowExceptionOnError*">ThrowExceptionOnError Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_ThrowExceptionOnError_" data-uid="C1.C1Preview.C1PrintDocument.ThrowExceptionOnError*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_ThrowExceptionOnError" data-uid="C1.C1Preview.C1PrintDocument.ThrowExceptionOnError">ThrowExceptionOnError</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether an exception should be raised if an error occurs
while the current document generates.
If this property is false, the <a class="xref" href="C1.C1Preview.C1PrintDocument.Generate.html#C1_C1Preview_C1PrintDocument_Generate">Generate()</a> method will return false
if errors occurred while generating, otherwise an exception will be thrown
on the first error.</p>
<p>The default value is false.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ThrowExceptionOnError { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ThrowExceptionOnError As Boolean</code></pre>
</div>
</div>
