myclass::myclass(const std::wstring& processName,const std::wstring& dllName)
{
if ( (isValidDll(fileName)) && (isValidProcess(processName)) )
{
this->dllName = dllName;
this->processName = processName;
memoryAddress = NULL;
}
else
{
throw; // what kind of exception should i throw for invalid arguments?
}
}
im quite new to c++ exceptions and im curious to what advice or how you people would handle this type of exception. Say the user enters invalid arguments when trying to instantiate an object of mine....if the arguments are invalid...how should i handle it or what should i throw?
as stated before just curious as to how people would handle/deal with this! -thx