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