|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 | +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | + |
| 4 | +<html xmlns = "http://www.w3.org/1999/xhtml"> |
| 5 | +<!-- |
| 6 | +SAME AS NELSON SOFTWARE |
| 7 | +--> |
| 8 | + |
| 9 | +<head> |
| 10 | +<meta name="generator" content= |
| 11 | +"HTML Generated by Nelson"/> |
| 12 | +<link rel="stylesheet" type="text/css" href="style.css" /> |
| 13 | +<link rel="stylesheet" href="mono-blue.css" type="text/css" /> |
| 14 | +<script src = "highlight.pack.js" type = "text/javascript"> |
| 15 | +</script> |
| 16 | +<script type = "text/javascript">hljs.initHighlightingOnLoad();</script> |
| 17 | +</script> |
| 18 | + <meta http-equiv="Content-Type" content = "text/html; charset=utf-8" /> |
| 19 | + <title>MException</title> |
| 20 | + |
| 21 | +</head> |
| 22 | +<body> |
| 23 | + |
| 24 | +<div class = "manualnavbar"> |
| 25 | +<table width = "100%"><tr> |
| 26 | + |
| 27 | +<td width="30%" class="previous"> |
| 28 | +<span class="top"><a href="lastwarn.html"><< lastwarn</a></span> |
| 29 | +</td> |
| 30 | + |
| 31 | +<td width="40%" class="center"> |
| 32 | +<span class="top"><a href="chapter_error_manager.html">error manager</a></span> |
| 33 | +</td> |
| 34 | + |
| 35 | +<td width = "30%" class = "next"> |
| 36 | +<span class = "next"><a href = "rethrow.html">rethrow >></a></span> |
| 37 | +</td> |
| 38 | + |
| 39 | +</tr></table> |
| 40 | +<hr /> |
| 41 | + |
| 42 | +<h1 class="refname">MException</h1> |
| 43 | +<hr/> |
| 44 | + |
| 45 | +<h3>Matrix Exception information.</h3> |
| 46 | +<hr/> |
| 47 | + |
| 48 | +<h3>Syntax</h3> |
| 49 | +<hr/> |
| 50 | + |
| 51 | +<table summary="syntax" style="width:50%"> |
| 52 | + <tr> |
| 53 | + <td>ME = MException(identifier, message)</td> |
| 54 | + </tr> |
| 55 | + |
| 56 | + <tr> |
| 57 | + <td>ME = MException('last')</td> |
| 58 | + </tr> |
| 59 | + |
| 60 | + <tr> |
| 61 | + <td>MException('reset')</td> |
| 62 | + </tr> |
| 63 | + |
| 64 | +</table> |
| 65 | + |
| 66 | +<h3>Input argument</h3> |
| 67 | +<hr/> |
| 68 | + |
| 69 | +<dl> |
| 70 | +<dt><span class="term">identifier</span></dt> |
| 71 | +<dd> |
| 72 | +<p class="para">a string: error identifier.</p> |
| 73 | +</dd> |
| 74 | + |
| 75 | +<dt><span class="term">message</span></dt> |
| 76 | +<dd> |
| 77 | +<p class="para">a string.</p> |
| 78 | +</dd> |
| 79 | + |
| 80 | +</dl> |
| 81 | + |
| 82 | +<h3>Output argument</h3> |
| 83 | +<hr/> |
| 84 | + |
| 85 | +<dl> |
| 86 | +<dt><span class="term">ME</span></dt> |
| 87 | +<dd> |
| 88 | +<p class="para">a MException object.</p> |
| 89 | +</dd> |
| 90 | + |
| 91 | +</dl> |
| 92 | + |
| 93 | +<h3>Description</h3> |
| 94 | +<hr/> |
| 95 | + |
| 96 | +<p></p> |
| 97 | + |
| 98 | + <p>All Nelson code that detects an error and throws an exception constructs an MException object.</p> |
| 99 | + <p>identifier includes one or more component fields and a mnemonic field (example: 'nelson:matrix:empty')</p> |
| 100 | + <p><b>ME = MException('last')</b> return last exception.</p> |
| 101 | + <p><b>MException('reset')</b> clears last exception.</p> |
| 102 | + |
| 103 | + |
| 104 | +<h3>Example</h3> |
| 105 | +<hr/> |
| 106 | + |
| 107 | +<pre> |
| 108 | +<code class = "nelson">ME = MException('nelson:identifier', 'your error message.') |
| 109 | +throw(ME) |
| 110 | +</code> |
| 111 | +</pre> |
| 112 | + |
| 113 | +<h3>See also</h3> |
| 114 | +<hr/> |
| 115 | + |
| 116 | +<p> |
| 117 | +<a href = "error.html" class = "link">error</a>, <a href = "try.html" class = "link">try</a>, <a href = "throw.html" class = "link">throw</a>, <a href = "rethrow.html" class = "link">rethrow</a>, <a href = "throwAsCaller.html" class = "link">throwAsCaller</a>.</p> |
| 118 | + |
| 119 | +<h3>History</h3> |
| 120 | +<hr/> |
| 121 | + |
| 122 | +<table summary = "history" style="width:50%"> |
| 123 | +<tr> |
| 124 | + <th>Version</th> |
| 125 | + <th>Description</th> |
| 126 | +</tr> |
| 127 | +<tr> |
| 128 | + <td>1.0.0</td> |
| 129 | + <td>initial version</td> |
| 130 | +</tr> |
| 131 | + |
| 132 | +</table> |
| 133 | + |
| 134 | +<h3>Author</h3> |
| 135 | +<hr/> |
| 136 | + |
| 137 | +<p>Allan CORNET</p> |
| 138 | + |
| 139 | +<div class = "manualnavbar"> |
| 140 | +<table width = "100%"><tr> |
| 141 | + |
| 142 | +<td width="30%" class="previous"> |
| 143 | +<span class="top"><a href="lastwarn.html"><< lastwarn</a></span> |
| 144 | +</td> |
| 145 | + |
| 146 | +<td width="40%" class="center"> |
| 147 | +<span class="top"><a href="chapter_error_manager.html">error manager</a></span> |
| 148 | +</td> |
| 149 | + |
| 150 | +<td width = "30%" class = "next"> |
| 151 | +<span class = "next"><a href = "rethrow.html">rethrow >></a></span> |
| 152 | +</td> |
| 153 | + |
| 154 | +</tr></table> |
| 155 | +<hr /> |
| 156 | + |
| 157 | +</body> |
| 158 | + |
| 159 | +</html> |
| 160 | + |
0 commit comments