17 writes to Error
System (17)
net\System\Net\Cache\IERequestCache.cs (1)
185
entry.
Error
= _WinInetCache.Status.Success;
net\System\Net\Cache\WinInetCache.cs (16)
241
entry.
Error
= Status.Success;
245
entry.
Error
= (Status)Marshal.GetLastWin32Error();
276
entry.
Error
= SafeUnlockUrlCacheEntryFile.GetAndLockFile(entry.Key, entryPtr, ref size, out handle);
306
entry.
Error
= Status.InternalError;
338
entry.
Error
= Status.Success;
344
entry.
Error
= (Status) Marshal.GetLastWin32Error();
358
entry.
Error
= Status.InsufficientBuffer;
362
entry.
Error
= Status.Success;
380
entry.
Error
= (Status)Marshal.GetLastWin32Error();
397
newEntry.
Error
= Status.Success;
407
newEntry.
Error
= (Status)Marshal.GetLastWin32Error();
421
newEntry.
Error
= oldEntry.Error;
460
newEntry.
Error
= oldEntry.Error;
503
entry.
Error
= Status.Success;
505
entry.
Error
= (Status)Marshal.GetLastWin32Error();
539
entry.
Error
= Status.Success;
47 references to Error
System (47)
net\System\Net\Cache\IERequestCache.cs (30)
130
if (_WinInetCache.Remove(entry) != _WinInetCache.Status.Success && entry.
Error
!= _WinInetCache.Status.FileNotFound) {
131
Win32Exception win32Exception = new Win32Exception((int)entry.
Error
);
136
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.Remove(), ", key, entry.
Error
.ToString()));
163
if (_WinInetCache.Remove(entry) == _WinInetCache.Status.Success || entry.
Error
== _WinInetCache.Status.FileNotFound) {
164
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.
Error
.ToString()));
168
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_remove_failed_status, "WinInetCache.TryRemove()", key, entry.
Error
.ToString()));
175
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.
Error
.ToString()));
184
if (entry.
Error
!= _WinInetCache.Status.Success && _WinInetCache.LookupInfo(entry) == _WinInetCache.Status.FileNotFound) {
187
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_key_status, "WinInetCache.TryRemove()", key, entry.
Error
.ToString()));
188
return entry.
Error
== _WinInetCache.Status.Success;
237
if (entry.
Error
== _WinInetCache.Status.Success) {
238
if(Logging.On) Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_filename, "WinInetCache.Retrieve()", entry.Filename, entry.
Error
));
313
if (entry.
Error
!= _WinInetCache.Status.FileNotFound)
315
if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_lookup_failed, "WinInetCache.Retrieve()", new Win32Exception((int)entry.
Error
).Message));
319
Win32Exception win32Exception = new Win32Exception((int)entry.
Error
);
347
if(Logging.On)Logging.Exit(Logging.RequestCache, "WinInetCache.Retrieve()", "Status = " + entry.
Error
.ToString());
462
if (entry.
Error
!= _WinInetCache.Status.Success) {
465
Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_create_failed, new Win32Exception((int)entry.
Error
).Message));
470
Win32Exception win32Exception = new Win32Exception((int)entry.
Error
);
586
if (entry.
Error
!= _WinInetCache.Status.Success) {
589
Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetCache.Update()", entry.Key, new Win32Exception((int)entry.
Error
).Message));
594
Win32Exception win32Exception = new Win32Exception((int)entry.
Error
);
600
if(Logging.On) Logging.Exit(Logging.RequestCache, "WinInetCache.Update()", "Status = " + entry.
Error
.ToString());
1023
if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_delete_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.
Error
).Message));
1057
if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_commit_failed, "WinInetWriteStream.Close()", m_Entry.Key, new Win32Exception((int)m_Entry.
Error
).Message));
1073
Win32Exception win32Exception = new Win32Exception((int)m_Entry.
Error
);
1083
Logging.PrintInfo(Logging.RequestCache, "WinInetWriteStream.Close(), Key = " + m_Entry.Key + ", Commit Status = " + m_Entry.
Error
.ToString());
1091
if(Logging.On)Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_update_failed, "WinInetWriteStream.Close(), Key = " + m_Entry.Key, new Win32Exception((int)m_Entry.
Error
).Message));
1094
Win32Exception win32Exception = new Win32Exception((int)m_Entry.
Error
);
1099
if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_stale_and_update_status, "WinInetWriteFile.Close()", m_Entry.Info.U.ExemptDelta, m_Entry.
Error
.ToString()));
net\System\Net\Cache\WinInetCache.cs (17)
242
return entry.
Error
;
246
if (entry.
Error
== Status.InsufficientBuffer) {
259
return entry.
Error
;
278
if (entry.
Error
== Status.Success) {
286
if (entry.
Error
== Status.InsufficientBuffer) {
305
if (entry.
Error
== Status.Success) {
345
return entry.
Error
;
359
return entry.
Error
;
385
return entry.
Error
;
421
newEntry.Error = oldEntry.
Error
;
422
return newEntry.
Error
;
460
newEntry.Error = oldEntry.
Error
;
461
return newEntry.
Error
;
482
return newEntry.
Error
;
496
return newEntry.
Error
;
507
return entry.
Error
;
557
return entry.
Error
;