Difference between revisions of "Classes unit"

From Lazarus wiki
Jump to navigationJump to search
(Exception classes)
Line 39: Line 39:
  
 
== Exception Classes Defined ==
 
== Exception Classes Defined ==
*EStreamError
+
*EStreamError - Exception raised when an error occurs during read or write operations on a stream.
**EFCreateError
+
**EFCreateError - Exception raised when an error occurred during creation of a [[TFileStream]] stream.
**EFOpenError
+
**EFOpenError   - Exception raised when an error occurred during creation of a TFileStream
**EFilerError
+
**EFilerError   - Exception raised by the component streaming system if an error occurs.
***EReadError
+
***EReadError - Exception raised if an error occurs while reading from a stream.
***EWriteError
+
***EWriteError - Exception raised when an error occurs during writing to a stream.
***EClassNotFound
+
***EClassNotFound - Exception raised when an unknown class is referenced in a streamed component.
***EMethodNotFound
+
***EInvalidImage - Exception raised when the resource header needed for streaming of a component is invalid.
***EInvalidImage
+
*EResNotFound - Exception raised when a resource, needed to initialize a component, is not found.
*EResNotFound
+
*EListError (ifndef FPC_TESTGENERICS) - Exception raised when an error occurs in lists handling.
*EListError (ifndef FPC_TESTGENERICS)
+
*EBitsError - Exception raised when an error occurs in a method of [[TBits]].
*EBitsError
+
*EStringListError - Exception raised when an error occurs in a method of [[TStrings]].
*EStringListError
+
*EComponentError - Exception raised when an error occurs in the component registration routines.
*EComponentError
+
*EParserError - Exception raised when an error occurs during the parsing of streams.
*EParserError
+
*EOutOfResources - Exception raised when the system is out of resources.
*EOutOfResources
 
*EInvalidOperation
 
*TExceptionClass
 
  
 
== See also ==
 
== See also ==

Revision as of 09:44, 18 August 2016

The Classes unit is part of the Free Pascal standard Runtime Library and contains abstract classes that form the basis for derived classes, and also implements a number of general purpose concrete classes including:

Classes Defined

Exception Classes Defined

  • EStreamError - Exception raised when an error occurs during read or write operations on a stream.
    • EFCreateError - Exception raised when an error occurred during creation of a TFileStream stream.
    • EFOpenError - Exception raised when an error occurred during creation of a TFileStream
    • EFilerError - Exception raised by the component streaming system if an error occurs.
      • EReadError - Exception raised if an error occurs while reading from a stream.
      • EWriteError - Exception raised when an error occurs during writing to a stream.
      • EClassNotFound - Exception raised when an unknown class is referenced in a streamed component.
      • EInvalidImage - Exception raised when the resource header needed for streaming of a component is invalid.
  • EResNotFound - Exception raised when a resource, needed to initialize a component, is not found.
  • EListError (ifndef FPC_TESTGENERICS) - Exception raised when an error occurs in lists handling.
  • EBitsError - Exception raised when an error occurs in a method of TBits.
  • EStringListError - Exception raised when an error occurs in a method of TStrings.
  • EComponentError - Exception raised when an error occurs in the component registration routines.
  • EParserError - Exception raised when an error occurs during the parsing of streams.
  • EOutOfResources - Exception raised when the system is out of resources.

See also