Sign in Join
FPDoc Onlineexperiment

MDSError class

In unit MemDs

Exception raised for errors when reading or writing an in-memory dataset.

Declaration

pascal
MDSError = class(Exception)

Inheritance

  1. MDSError
  2. Exception
  3. TObject

Description

MDSError is an Exception type raised when an error occurs while reading or writing values for an in-memory dataset. MDSError is raised in the TMemDataset.RaiseError method and uses messages defined in resource strings in the implementation for the unit, including:

  • Fieldtype of Field "%s" not supported
  • Bookmark %d not found
  • Error in data stream at position %d
  • Wrong data stream marker at position %d. Got %d, expected %d'
  • Filename must not be empty

An MDSError exception will be raised when a field definition uses a data type not supported in TMemDataset. The exception will be raised for the following field types:

  • ftADT
  • ftCursor
  • ftDataSet
  • ftDBaseOle
  • ftFmtMemo
  • ftGraphic
  • ftIDispatch
  • ftInterface
  • ftOraBlob
  • ftOraClob
  • ftParadoxOle
  • ftReference
  • ftTimeStamp
  • ftTypedBinary
  • ftVariant
  • ftUnknown

See also

Inherited

From Exception (12)

Create CreateFmt CreateFmtHelp CreateHelp CreateRes CreateResFmt CreateResFmtHelp CreateResHelp GetBaseException HelpContext Message ToString

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Destroy Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.