Fixed the loading of CSV documents
Refined exception type