The code fragment responsible for throwing the MException object must have supplied the filename when the constructor was called.
virtual const MString& getFileName() const;