Hello, guys. this is a homework, could someone give some hint to me.
Assume you are about to design a class that reads a configuration file
from disk and provides some functions that can be called by other
classes to inquire the user settings that was provided in the
configuration file. The public parts of the class could look something
like this:
class ConfigurationFile
{
public:
ConfigurationFile(const char* filename);
~ConfigurationFile();
const char* GetValue(const char* name);
};
A number of fault conditions may arise when using this class. Describe
them and how you would design the fault handling for each one of them
in the class. Provide a convincing rationale for each choice.