Text Editing framework exception handling

The Text Editing framework issues exceptions using the class TTextEditException. TTextEditException derives from TStandardException, and identifies the following exception conditions:

Exception Description
kEditableTextException General exception identifier.
kInvalidSelectionValue Model received an invalid selection value.
kInvalidParagraphOffset Model received an invalid paragraph offset (for example, a negative number).
kInvalidModel Model is not valid for the requested operation.
kModelAlreadyLockedForReading Trying to lock a model that is already locked for reading.
kModelNotLockedForReading Trying to unlock a model that is not locked for reading.
kModelAlreadyLockedForWriting Trying to lock a model that is already locked for writing.
kModelNotLockedForWriting Trying to unlock a model that is not locked for writing.
kInvalidTextMargins Presenter state received invalid text margins.
kInvalidSelectionType View received a selection of the wrong type.
kInvalidFormatterAddress View received an invalid formatter address.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker