// ------------ // construction // ------------ internal BackgroundCopyError(BackgroundCopyManager manager, IBackgroundCopyError i) { Manager = manager; interop = i ?? throw new ArgumentNullException(nameof(i)); }
internal BackgroundCopyException(BackgroundCopyManager manager, uint hResult) : base(manager.GetErrorDescription(hResult)) => HResult = (int)hResult;
// ------------ // construction // ------------ internal BackgroundCopyJob(BackgroundCopyManager manager, IBackgroundCopyJob i) { Manager = manager; interop = i ?? throw new ArgumentNullException(nameof(i)); HttpOptions = new BackgroundCopyJobHttpOptions(this); }
internal BackgroundCopyException(BackgroundCopyManager manager, COMException inner) : base(manager.GetErrorDescription(inner), inner) { }