initial commit
[rofl0r-KOL.git] / err_pas.htm
blob56b2d27f71a32a88574e495b3a86bef18524596a
1 <html>
3 <head>
4 <title>KOL Help: unit err.pas</title>
5 </head>
7 <body bgcolor="#FFFFEF" text="#000000" link="#008080" vlink="#008000" alink="#808000">
9 <h1 align="center">
10 &nbsp;&nbsp;<a href="kol_pas.htm"><font face="Webdings" size=7>&#55;</font></a>&nbsp;&nbsp;
11 &nbsp;&nbsp;<a href="mmx_pas.htm"><font face="Webdings" size=7>&#56;</font></a>&nbsp;&nbsp;
12 <font face="Arial" color="#FF8080">unit err.pas</font>
13 </h1>
14 <hr>
15 <p>
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).
19 <br><br>
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.
23 </p>
24 <h2 align="center"><font face="Arial" color="#FF8080">Content</font></h2>
25 <a name="terror"></a>
26 <p>
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>
28 <br>
29 Main error codes. These are to determine which exception occure. You
30 can use e_Custom code for your own exceptions.
31 </p>
32 <a name="exception"></a>
33 <p>
34 <font face="Courier" color="#808000"><b>type</b> <a href=exception.htm><b>Exception</b></a> = <b>class</b>( <b>TObject</b> )</font>
35 <br>
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.
40 </p>
41 <hr>
42 <p align="center">[&nbsp;<a href=index.htm>Index</a>&nbsp;]</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>
44 </body>
45 </html>