Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

Using the Differents Error Modes

The FileHelpers library has support for 3 kinds of error handling.

In the standard mode you can catch the exceptions when something fail.

This approach not is bad but you lose some info about the current record and you can't use the records array because is not asigned.

A more intelligent way is usign the ErrorMode.SaveAndContinue of the ErrorManager:

Using the engine like this you have the good records in the records array and in the ErrorManager you have te records with errors and can do wherever you want.

Another option is to ignore the errors and continue how is showed in this example

In the records array you only have the good records.

Saving and Loading Errors

One intersting feature is the method in the ErrorManager to save the errors to a file files, you can do this

To load a file with errors you can use the static method

See also

Must Read - Quick Start Guide - Attributes List - F.A.Q. - Examples of Use - Contacts & Credits - Donations

© 2005-07 to Marcos Meli

FileHelpers on SourceForge
Browse the Forums Development Blog
Support the project
Devoo Software
Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox