Use custom exception for replay creation failures

This commit is contained in:
baldurk
2016-08-04 14:14:29 +02:00
parent 42f57990d9
commit 8a5d300e78
6 changed files with 34 additions and 22 deletions
+3 -3
View File
@@ -150,7 +150,7 @@ namespace renderdocui.Code
{
m_Remote = StaticExports.CreateRemoteServer(hostname, 0);
}
catch (ApplicationException ex)
catch (ReplayCreateException ex)
{
InitException = ex;
}
@@ -162,7 +162,7 @@ namespace renderdocui.Code
m_Remote.ShutdownConnection();
}
public ApplicationException InitException = null;
public ReplayCreateException InitException = null;
public void CloseThreadSync()
{
@@ -295,7 +295,7 @@ namespace renderdocui.Code
DestroyReplayRenderer(renderer);
}
}
catch (ApplicationException ex)
catch (ReplayCreateException ex)
{
InitException = ex;
}