summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar John Cowan 2021-07-25 23:30:23 -0400
committerGravatar Arthur A. Gleckler 2021-07-26 16:10:31 -0700
commitac1bc7f423938c41bf270054482900b72ed77964 (patch)
treeb12d1200c3606340ab2a6ea7635a43090fe47b23
parentnew example (diff)
exceptions
-rw-r--r--srfi-225.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/srfi-225.html b/srfi-225.html
index 7467673..26df762 100644
--- a/srfi-225.html
+++ b/srfi-225.html
@@ -266,8 +266,22 @@ that file.<p>
<p><code>(make-alist-dtd</code>&nbsp;<em>equal</em><code>)</code></p>
<p>Returns a DTD for manipulating an alist using the equality predicate <em>equal</em>.</p>
<blockquote><code>(make-alist-dtd =) =&gt; a DTD for alists using numeric equality</code></blockquote>
+<h3 id="exceptions">Exceptions</h3>
+<p><code>dictionary-error</code>&nbsp;<em>message irritant</em> ... <code>)</code></p>
+<p>Returns a dictionary error with the given <em>message</em> (a string) and
+<em>irritants</em> (any objects).
+If a particular procedure in a DTD cannot be implemented, it instead
+should signal an appropriate dictionary exception that can be reliably caught.
+<p><code>dictionary-error?</code>&nbsp;<em>obj</em><code>)</code></p>
+<p>Returns <code>#t</code> if <em>obj</em> is a dictionary error
+and <code>#f</code> otherwise.
+<p><code>dictionary-message</code>&nbsp<em>dictionary-error</em><code>)</code></p>
+<p>Returns the message associated with <em>dictionary-error.</em></p>
+<p><code>(dictionary-irritants</code>&nbsp<em>dictionary-error</em><code>)</code></p>
+<p>Returns a list of the irritants associated with <em>dictionary-error</em>.</p>
+<h3 id="variables">Variables</h3>
<p>The following DTDs are also exported from this SRFI:
-<code>srfi-69-dtd</code>, <code>hash-table-dtd</code>, <code>srfi-126</code>,
+<code>srfi-69-dtd</code>, <code>hash-table-dtd</code>, <code>srfi-126-dtd</code>,
<code>mapping-dtd</code>, <code>hash-mapping-dtd</code>, <code>plist-dtd</code>,
<code>alist-eqv-dtd</code>, and <code>alist-equal-dtd</code>.
The last two provide DTDs for alists using <code>eqv?</code>
-egg/commit/srfi-225.html?h=draft-5&id=c95f61edc13dc88891f34d88b20a4a4a0f70e944&follow=1'>updatesGravatar John Cowan 1-2/+4 2021-07-26dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-26DTO to DTDGravatar John Cowan 1-55/+52 2021-07-26typoGravatar John Cowan 1-1/+1 2021-07-26switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-26errorsGravatar John Cowan 1-1/+4 2021-07-26more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-26update preview linkGravatar John Cowan 1-1/+1 2021-07-26MN-W reviewGravatar John Cowan 1-6/+6 2021-07-26paired mutatorsGravatar John Cowan 1-43/+68 2021-07-25exceptionsGravatar John Cowan 1-1/+15 2021-07-25new exampleGravatar John Cowan 1-1/+4 2021-07-25updatesGravatar John Cowan 1-2/+4 2021-07-24dtd always first argumentGravatar John Cowan 1-9/+9 2021-07-23DTO to DTDGravatar John Cowan 1-55/+52 2021-07-22typoGravatar John Cowan 1-1/+1 2021-07-22switching to explicit dtosGravatar John Cowan 1-88/+102 2021-07-22errorsGravatar John Cowan 1-1/+4 2021-07-22more MN-W reviewGravatar John Cowan 1-5/+5 2021-07-20update preview linkGravatar John Cowan 1-1/+1 2021-07-20MN-W reviewGravatar John Cowan 1-6/+6 2021-07-18Fix typo.Gravatar Arthur A. Gleckler 2-4/+4 2021-07-18Add <p> around abstract.Gravatar Arthur A. Gleckler 1-2/+2 2021-07-18Publish first draft.draft-1Gravatar Arthur A. Gleckler 3-0/+114 2021-07-18Ignore trailing whitespace.Gravatar Arthur A. Gleckler 11-129/+129 2021-07-18Ignore "Dictionaries.log".Gravatar Arthur A. Gleckler 1-1/+2 2021-07-18Fix errors reported by W3C HTML Validator.Gravatar Arthur A. Gleckler 1-27/+27 2021-07-18Eliminate unnecessary redirect by using TLS/SSL.Gravatar Arthur A. Gleckler 1-1/+1