JVCL Help:EJvCsvKeyError
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: EJvCsvKeyError Class
[+] JvCsvData.pas Classes
Search in JVCL Help
Search in all projectsClass Hierarchy
EJvCsvKeyError
run\JvCsvData.pas
Summary
Exception class for CSV key errors. Invalid or duplicate primary key.
Pascal
run\JvCsvData.pas
EJvCsvKeyError = class(EDatabaseError);
Description
This class is used, instead of just raising a bare Exception, so you can craft your exception handling. If you are doing a dataset operation and you want to handle only errors raised by a TJvCsvDataSet that are due to invalid/duplicate primary keys.try
MyDataSet.DoSomething;
except
on E:EJvCsvKeyError dobegin
NotifyUserPrimaryKeyIsInvalid;
end
end;
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page