4 <title>KOL Help: unit err.pas
</title>
7 <body bgcolor=
"#FFFFEF" text=
"#000000" link=
"#008080" vlink=
"#008000" alink=
"#808000">
10 <a href=
"kol_pas.htm"><font face=
"Webdings" size=
7>7</font></a>
11 <a href=
"mmx_pas.htm"><font face=
"Webdings" size=
7>8</font></a>
12 <font face=
"Arial" color=
"#FF8080">unit err.pas
</font>
16 Unit to provide error handling for
<a href=kol_pas.htm
>KOL
</a> programs using efficient
17 exceptions mechanism. To use it, just place a reference to it into
18 uses clause of any unit of the project (or dpr-file).
20 It is possible to use standard SysUtils instead, but it increases
21 size of executable at least by
10K. Using this unit to handle exceptions
22 increases executable only by
6,
5K.
24 <h2 align=
"center"><font face=
"Arial" color=
"#FF8080">Content
</font></h2>
27 <font face=
"Courier" color=
"#800080"><b>type
</b> <font color=
"#808000"><b>TError
</b></font> =( e_Abort, e_Heap, e_OutOfMem, e_InOut, e_External, e_Int, e_DivBy0, e_Range, e_IntOverflow, e_Math, e_Math_InvalidArgument, e_InvalidOp, e_ZeroDivide, e_Overflow, e_Underflow, e_InvalidPointer, e_InvalidCast, e_Convert, e_AccessViolation, e_Privilege, e_StackOverflow, e_CtrlC, e_Variant, e_PropReadOnly, e_PropWriteOnly, e_Assertion, e_Abstract, e_IntfCast, e_InvalidContainer, e_InvalidInsert, e_Package, e_Win32, e_SafeCall, e_License, e_Custom, e_Com, e_Ole, e_Registry );
</font>
29 Main error codes. These are to determine which exception occure. You
30 can use e_Custom code for your own exceptions.
32 <a name=
"exception"></a>
34 <font face=
"Courier" color=
"#808000"><b>type
</b> <a href=exception.htm
><b>Exception
</b></a> =
<b>class
</b>(
<b>TObject
</b> )
</font>
36 <a href=exception.htm
>Exception
</a> class. In
<a href=kol_pas.htm
>KOL
</a>, there is a single exception class is used.
37 Instead of inheriting new exception classes from this ancestor, an
38 instance of the same
<a href=exception.htm
>Exception
</a> class should be used. The difference
39 is only in
<a href=exception.htm#code
>Code
</a> property, which contains a kind of exception.
42 <p align=
"center">[
<a href=index.htm
>Index
</a> ]
</p>
43 <p align=
"center"><font face=
"Comic Sans MS"><small>This help is generated
22-Sep-
2005 by KOL Help generator, (C)
2000-
2001 by Vladimir Kladov
<br>Modified (C)
2003 by Alexander Bartov
</small></font></p>