    

 ## On this page

  

 

 # NonFatalError

 Last update: 17.07.2025 

<a name="l00001"></a> 1 

<a name="l00002"></a> 2 /\*

<a name="l00003"></a> 3  \* Copyright ANSYS. All rights reserved.

<a name="l00004"></a> 4  \*/

<a name="l00005"></a> 5 \#pragma once

<a name="l00006"></a> 6 

<a name="l00007"></a> 7 \#include "LibraryType.hpp"

<a name="l00008"></a> 8 

<a name="l00009"></a> 9 \#include &lt;exception&gt;

<a name="l00010"></a> 10 \#include &lt;string&gt;

<a name="l00011"></a> 11 

<a name="l00012"></a> 12 namespace sysc {

<a name="l00013"></a> 13 

<a name="l00014"></a>[ 14](classsysc_1_1NonFatalError.xhtml) class [NonFatalError](classsysc_1_1NonFatalError.xhtml) : public std::exception {

<a name="l00015"></a> 15 public:

<a name="l00016"></a> 16 [NonFatalError](classsysc_1_1NonFatalError.xhtml)(std::string str) :

<a name="l00017"></a> 17 m_str("NonFatalError: " + std::move(str))

<a name="l00018"></a> 18 {

<a name="l00019"></a> 19 }

<a name="l00020"></a> 20 ~[NonFatalError](classsysc_1_1NonFatalError.xhtml)() noexcept override = default;

<a name="l00021"></a> 21 const char* what() const noexcept override { return m_str.c_str(); }

<a name="l00022"></a> 22 

<a name="l00023"></a> 23 private:

<a name="l00024"></a> 24 std::string m_str;

<a name="l00025"></a> 25 };

<a name="l00026"></a> 26 

<a name="l00027"></a> 27 void SYSTEM_COUPLING_PARTICIPANT_DLL throwNonFatalError(const std::string&amp; errorMessage);

<a name="l00028"></a> 28 

<a name="l00029"></a> 29 } // namespace sysc

[sysc::NonFatalError](classsysc_1_1NonFatalError.xhtml)

**Definition:** [NonFatalError.hpp:14](NonFatalError_8hpp_source.xhtml#l00014)