?? errors.html
字號:
<TITLE>COG 2.1: Errors</TITLE><H1>Errors</H1> <P>The description of the errors is part of the documentation of eachpart. You can find error descriptions for:<H3>WZ 1.0</H3> <UL> <LI> <A HREF="mainwzoutputtest.html#errors">formatted output</A> <LI> <A HREF="mainwzarraytest.html#errors">array handling</A> </UL><H2>Some more help about the errors</H2> <P>Usually, the error description you find in the previous links hasthe 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 incorrectusage, but also shows you how to use the<B>try{...}catch(XyzError){...}</B> construction to catch theexception. <P>If you want to debug the code, you can (if you have a C++ sourcecode 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 documentationfiles "*test.html". It is used in examples of error handling code andfollows 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 oftenused in test programs "*test.cxx", which are automatically generatedfrom 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 theunmodified 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 + -