--- parser3/www/htdocs/Attic/index.html 2002/03/26 08:51:00 1.25
+++ parser3/www/htdocs/Attic/index.html 2002/03/27 15:30:39 1.28
@@ -7,7 +7,9 @@ $response:charset[windows-1251]
$response:content-type[$.value[text/html]$.charset[$response:charset]]
@main[]
-^rolls[]
+^exceptionTypes[]
+#^roll2[]
+#^rolls[]
#^exceptions1[]
#^locate_by_expr[]
#^method_junction_params{...}
@@ -110,6 +112,25 @@ $response:content-type[$.value[text/html
OK
+@exceptionTypes[]
+# parser.compile ^test[} компиляция (непарная скобка, ...)
+# parser.runtime ^if(0). параметры (больше/меньше, чем нужно, не тех типов, ...)
+# number.zerodivision ^eval(1/0) ^eval(1%0)
+# number.format ^eval(abc*5)
+# file.missing ^file:delete[delme] not found
+# file.access ^table::load[.] no rights
+# image.format ^image::measure[index.html] not gif/jpg
+# sql.connect ^connect[mysql://baduser:pass@host/db]{} not found/timeout
+# sql.execute ^connect[mysql://okuser:pass@host/db]{^void:sql{select bad}} syntax error
+# xml ^xdoc::create{} any error in xml/xslt libs
+# smtp.connect not found/timeout
+# smtp.execute communication error
+
+@roll2[]
+$d[^date::create(2002;4;2;2;2;3)] ^d.sql-string[]
+^d.roll[day](+365*3+1) ^d.sql-string[]
+
+
@rolls[]
$d[^date::create(2002;4;4)]
^d.sql-string[]
@@ -150,8 +171,8 @@ $d[^date::create(2002;10;19)]
^throw[custom1;paf;is stupid]
}{
^if($exception.type eq custom1){
- $exception.handled(1)
-# ^throw[$exception]
+# $exception.handled(1)
+ ^throw[$exception]
type=$exception.type
source=$exception.source
file=$exception.file