TryCatch
try
{
}
catch (Exception::CLRError)
{
System.Exception interopException = CLRInterop::getLastException();
isSuccess = false;
strErrorMsg = interopException.ToString();
}
catch
{
SysInfoLogEnumerator infoLogEnum;
infoLogEnum = SysInfoLogEnumerator::newData(infolog.copy(1, infologLine()));
while(infoLogEnum.moveNext())
{
strErrorMsg += infoLogEnum.currentMessage();
}
isSuccess = false;
}