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

📄 criterrors.html

📁 PTypes (C++ Portable Types Library) is a simple alternative to the STL that includes multithreading
💻 HTML
字号:
<html><!-- #BeginTemplate "/Templates/tmpl.dwt" --><head><!-- #BeginEditable "doctitle" --> <title>PTypes: critical errors</title><!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="styles.css"></head><body bgcolor="#FFFFFF" leftmargin="40" marginwidth="40"><p><a href="../index.html"><img src="title-1.7.gif" width="213" height="34" alt="C++ Portable Types Library (PTypes) Version 1.7" border="0"></a> <hr noshade><!-- #BeginEditable "body" --> <p class="hpath"><a href="index.html">Top</a>: Exceptions and critical errors</p><p>Some of the components in Portable Types Library may produce unrecoverable error conditions, such like a string list index is out of bounds, a stream object was constructed with inconsistent parameters, an operation on a stream is requested which requires buffering, etc. These errors are mainly caused by wrong usage of certain objects or functions of PTypes.</p><p>Whenever an unrecoverable error condition is raised, PTypes calls <span class="lang">fatal()</span> function with a message describing the error condition and terminates the program. On most platforms this message will be sent to <span class="lang">stderr</span>, and under Windows the message is shown in a simple dialog box with 'Ok' button. To force Windows version of PTypes to send the message to <span class="lang">stderr</span>, compile the library with a conditional symbol NO_CRIT_MSGBOX.</p><p>The function <span class="lang">fatal()</span> is declared in <span class="lang">&lt;pport.h&gt;</span>.</p><p>Some library components also raise recoverable error conditions (exceptions). PTypes only generates exception of type <span class="lang">exceptobj*</span> defined in <span class="lang">&lt;ptypes.h&gt;</span>, or, in some cases, a derivative class, e.g. <span class="lang">estream*</span>. An exception object at least contains an error message which can be retrieved through <span class="lang">get_message()</span> method. Exception objects are allocated dynamically, and therefore they should be freed by the catch block if it does not pass the exception farther. See also Streams <a href="streams.errors.html">Error handling</a> and <a href="streams.examples.html">Examples</a>.</p><!-- #EndEditable --><hr size="1"><a href="../index.html" class="ns">PTypes home</a></body><!-- #EndTemplate --></html>

⌨️ 快捷键说明

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