Finally fixed my exception class

I was not using the function properly in FileError.cpp