public static CreateComException ( |
||
e | ||
return |
public static Exception CreateComException(Exception e)
{
// nothing special required for external exceptions.
if (e is COMException)
{
return e;
}
// convert other exceptions to E_FAIL.
return new COMException(e.Message, ResultIds.E_FAIL);
}
ComUtils::CreateComException ( |
|
ComUtils::CreateComException ( int errorId ) : |
|
ComUtils::CreateComException ( string message, int errorId ) : |