JVCL Help:EJvCsvKeyError

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

EJvCsvKeyError
run\JvCsvData.pas


Summary

Exception class for CSV key errors. Invalid or duplicate primary key.

run\JvCsvData.pas


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;

run\JvCsvData.pas


About

Navigation

run\JvCsvData.pas



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