⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 errors.html

📁 有限元学习研究用源代码(老外的),供科研人员参考
💻 HTML
字号:
<TITLE>errors</TITLE>

<H1>Errors</H1>

 <P>The description of the errors is part of the documentation of each
part.  You can find error descriptions for:

<H3>WZ 1.0</H3>

 <UL>
 <LI> <A HREF="wzoutputtest.html#errors">formatted output</A>
 <LI> <A HREF="wzarraytest.html#errors">array handling</A>
 </UL>

<H3>IBG 2.0</H3>

 <UL>
 <LI> <A HREF="ibgcoarsetest.html#errors">coarse grid creation</A>
 </UL>

<H2>Some more help about the errors</H2>

 <P>Usually, the error description you find in the previous links has
the following format:

 <HR>

<H3><A NAME="XyzError">XyzError</A></H3>

 <P>to make xyz is not allowed:

<PRE>
 try{
	...	// example of a wrong statement
	should_fail();
 }catch(XyzError){;}
</PRE>

 <HR>

 <P>The example code not only gives you an example of an incorrect
usage, but also shows you how to use the
<B>try{...}catch(XyzError){...}</B> construction to catch the
exception.

 <P>If you want to debug the code, you can (if you have a C++ source
code debugger like decladebug) try the following:

<PRE>
(ladebug) stop in XyzError::XyzError
</PRE>

<H3><A NAME="DetectionError">wzDetectionError</A></H3>

 <P>The call <B>should_fail()</B> raises the exception
<B>wzDetectionError</B>.  This call is often used in test programs
"*test.cxx", which are automatically generated from the documentation
files "*test.html".  It is used in examples of error handling code and
follows after a wrong statement. 

 <P>Thus, if the exception was raised, the wrong expression has
(falsely) not caused an exception.  Please report if this happens 
in the unmodified test code. 

<H3><A NAME="AssertionError">wzAssertionError</A></H3>

 <P>The call <B>now( ... )</B> raises the exception
<B>wzAssertionError</B> if the argument is false. This call is often
used in test programs "*test.cxx", which are automatically generated
from the documentation files "*test.html".

 <P>Thus, if the exception was thrown, the related "claim" in the file
"*test.html" was wrong. Please report if this happens in the
unmodified test code.

<H3><A NAME="FileOpenError">wzFileOpenError</A></H3>

 <P>Some file was not found;

<H3><A NAME="FileReadError">wzFileReadError</A></H3>

 <P>Some file has the wrong format or is invalid;

<H3><A NAME="FileWriteError">wzFileWriteError</A></H3>

 <P>It was impossible to open some file for writing;

<H3><A NAME="InternalError">InternalError</A></H3>

 <P>Sorry, this is an internal error.

<A NAME="end"><hr></A>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -