Sign in Join
Wiki copytemporary

Classes unit: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Classes unit

OldNewLine
1+The **Classes** unit is part of the Free Pascal standard [[RTL|Runtime Library]] and contains abstract classes that form the basis for derived classes, and also implements a number of general purpose concrete classes including:
2+
3+## Classes Defined
4+
5+- [[TAbstractObjectReader]]
6+ - [[TBinaryObjectReader]]
7+- [[TAbstractObjectWriter]]
8+ - [[TBinaryObjectWriter]]
9+ - [[TTextObjectWriter]]
10+- [[TBits]]
11+- [[TFiler]]
12+ - [[TReader]]
13+ - [[TWriter]]
14+- [[TFPList]] ([[TFPListEnumerator]])
15+- [[TList]] - Manages a list of data type [[Pointer]], can search and sort the list, and has an event notification feature. ([[TListEnumerator]])
16+- [[TThread]]
17+- [[TThreadList]]
18+- [[TParser]]
19+- [[TPersistent]]
20+ - [[TCollection]] ([[TCollectionEnumerator]])
21+ - [[TOwnedCollection]]
22+ - [[TCollectionItem]]
23+ - [[TComponent]]
24+ - [[TBasicAction]]
25+ - [[TDataModule]]
26+ - [[TInterfacedPersistent]]
27+ - [[TStrings]]
28+ - [[TStringList]]
29+- [[TRecall]]
30+- [[TStream]]
31+ - [[TCustomMemoryStream]]
32+ - [[TMemoryStream]]
33+ - [[TBytesStream]]
34+ - [[TResourceStream]]
35+ - [[THandleStream]]
36+ - [[TFileStream]]
37+ - [[TOwnerStream]]
38+ - [[TProxyStream]]
39+ - [[TStringStream]]
40+
41+## Exception Classes Defined
42+
43+- **EStreamError** - Exception raised when an error occurs during read or write operations on a stream.
44+ - **EFCreateError** - Exception raised when an error occurred during creation of a [[TFileStream]] stream.
45+ - **EFOpenError** - Exception raised when an error occurred during creation of a TFileStream.
46+ - **EFilerError** - Exception raised by the component streaming system if an error occurs.
47+ - **EReadError** - Exception raised if an error occurs while reading from a stream.
48+ - **EWriteError** - Exception raised when an error occurs during writing to a stream.
49+ - **EClassNotFound** - Exception raised when an unknown class is referenced in a streamed component.
50+ - **EInvalidImage** - Exception raised when the resource header needed for streaming of a component is invalid.
51+- **EResNotFound** - Exception raised when a resource, needed to initialize a component, is not found.
52+- **EListError** (ifndef FPC_TESTGENERICS) - Exception raised when an error occurs in lists handling.
53+- **EBitsError** - Exception raised when an error occurs in a method of [[TBits]].
54+- **EStringListError** - Exception raised when an error occurs in a method of [[TStrings]].
55+- **EComponentError** - Exception raised when an error occurs in the component registration routines.
56+- **EParserError** - Exception raised when an error occurs during the parsing of streams.
57+- **EOutOfResources** - Exception raised when the system is out of resources.
58+
59+## See also
60+
61+- [[doc:rtl/classes/|classes unit doc]]
62+
63+---
64+*From the Free Pascal wiki, page "Classes unit", as it stood on 2016-08-18 after a change by FPC user, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
65+Category: RTL

Back to history