summaryrefslogtreecommitdiffabout
path: root/htdocs/exceptions/runtime.chtml
Unidiff
Diffstat (limited to 'htdocs/exceptions/runtime.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r--htdocs/exceptions/runtime.chtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/htdocs/exceptions/runtime.chtml b/htdocs/exceptions/runtime.chtml
index d0a8e14..9a72afd 100644
--- a/htdocs/exceptions/runtime.chtml
+++ b/htdocs/exceptions/runtime.chtml
@@ -1,47 +1,49 @@
1% html(); return; /* vim:set ft=sitecing: */ 1% html(); return; /* vim:set ft=sitecing: */
2%%derive layout = "/ancestry/layout.chtml"; 2%%derive layout = "/ancestry/layout.chtml";
3<%constructor> 3<%constructor>
4 b_strict = false; 4 b_strict = false;
5 PN_PREV("/exceptions/compile","compile-time","compile-time errors");
6 PN_NEXT("/sources","sources","source browser");
5</%constructor> 7</%constructor>
6<%codemethod string title() %> 8<%codemethod string title() %>
7 return "runtime exceptions handling"; 9 return "runtime exceptions handling";
8</%codemethod> 10</%codemethod>
9<%method void content() %> 11<%method void content() %>
10 <h1>site-C-ing runtime exception handling</h1> 12 <h1>site-C-ing runtime exception handling</h1>
11 <p> 13 <p>
12 The component may throw an exception while executing and the 14 The component may throw an exception while executing and the
13 <em>site-C-ing</em> will gladly pass it to the handler component which will 15 <em>site-C-ing</em> will gladly pass it to the handler component which will
14 give the user appropriate output (unless it throws an exception itself, of 16 give the user appropriate output (unless it throws an exception itself, of
15 course). Here you will see an example output provided by the handler bundled 17 course). Here you will see an example output provided by the handler bundled
16 with the <em>site-C-ing</em>. 18 with the <em>site-C-ing</em>.
17 </p> 19 </p>
18 20
19 <p> 21 <p>
20 Suppose you have <a href="/view/htdocs/exceptions/development/runtime.chtml" 22 Suppose you have <a href="/view/htdocs/exceptions/development/runtime.chtml"
21 target="insert" title="the link opens in the frame below">a component</a>, 23 target="insert" title="the link opens in the frame below">a component</a>,
22 which at some point throws an exception. Of course, <em>site-C-ing</em> will 24 which at some point throws an exception. Of course, <em>site-C-ing</em> will
23 catch the exception and pass it to <a 25 catch the exception and pass it to <a
24 href="/view/htdocs/handlers/exception_dev" target="insert" title="the link 26 href="/view/htdocs/handlers/exception_dev" target="insert" title="the link
25 opens in the frame below">the handler</a>, specified in <a 27 opens in the frame below">the handler</a>, specified in <a
26 href="/view/htdocs/exceptions/development/.scrc" target="insert" title="the 28 href="/view/htdocs/exceptions/development/.scrc" target="insert" title="the
27 link opens in the frame below">the configuration file</a>, which will produce 29 link opens in the frame below">the configuration file</a>, which will produce
28 some nice, human-readable <a href="/exceptions/development/runtime" 30 some nice, human-readable <a href="/exceptions/development/runtime"
29 target="insert" title="the link opens in the frame below">output</a>. Well, 31 target="insert" title="the link opens in the frame below">output</a>. Well,
30 you may not wish to give out all this information in the production 32 you may not wish to give out all this information in the production
31 environment, so you just put in your <a 33 environment, so you just put in your <a
32 href="/view/htdocs/exceptions/production/.scrc" target="insert" title="the 34 href="/view/htdocs/exceptions/production/.scrc" target="insert" title="the
33 link opens in the frame below">configuration file</a> some <a 35 link opens in the frame below">configuration file</a> some <a
34 href="/view/htdocs/handlers/exception_prod" target="insert" title="the link 36 href="/view/htdocs/handlers/exception_prod" target="insert" title="the link
35 opens in the frame below">different handler</a>, which just gives user <a 37 opens in the frame below">different handler</a>, which just gives user <a
36 href="/exceptions/production/runtime" target="insert" title="the link opens 38 href="/exceptions/production/runtime" target="insert" title="the link opens
37 in the frame below">a friendly yet lame excuse</a>. 39 in the frame below">a friendly yet lame excuse</a>.
38 </p> 40 </p>
39 41
40 <div class="insert"> 42 <div class="insert">
41 <iframe id="insert" name="insert" src="about:blank" width="95%" height="300"> 43 <iframe id="insert" name="insert" src="about:blank" width="95%" height="300">
42 <p>I wanted to put an &lt;iframe&gt; here, but your browser does not seem to 44 <p>I wanted to put an &lt;iframe&gt; here, but your browser does not seem to
43 support it. That is okay, it still will open links somehow.</p> 45 support it. That is okay, it still will open links somehow.</p>
44 </iframe> 46 </iframe>
45 </div> 47 </div>
46 48
47</%method> 49</%method>