improve exception type
MODIFY
WalletWasabi/BitcoinCore/Processes/BitcoindException.cs
WalletWasabi/BitcoinCore/Processes/BitcoindException.cs
@@ -9,5 +9,9 @@ namespace WalletWasabi.BitcoinCore.Processes
public BitcoindException(string message) : base(message)
{
}
+
+ public BitcoindException(string message, Exception innerException) : base(message, innerException)
+ {
+ }
}
}

MODIFY
WalletWasabi/BitcoinCore/Processes/BitcoindRpcProcessBridge.cs
WalletWasabi/BitcoinCore/Processes/BitcoindRpcProcessBridge.cs
@@ -60,7 +60,7 @@ namespace WalletWasabi.BitcoinCore.Processes
if (process is null || process.HasExited)
{
- throw new Exception($"Failed to start daemon, location: '{process?.StartInfo.FileName} {process?.StartInfo.Arguments}'", ex);
+ throw new BitcoindException($"Failed to start daemon, location: '{process?.StartInfo.FileName} {process?.StartInfo.Arguments}'", ex);
}
if (cancel.IsCancellationRequested)

improve exception type