Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Error.cs
Go to the documentation of this file.
2
3namespace System.IO;
4
5internal static class Error
6{
7 internal static Exception GetExceptionForLastWin32DriveError(string driveName)
8 {
9 int lastPInvokeError = Marshal.GetLastPInvokeError();
10 return GetExceptionForWin32DriveError(lastPInvokeError, driveName);
11 }
12
13 internal static Exception GetExceptionForWin32DriveError(int errorCode, string driveName)
14 {
15 if (errorCode == 3 || errorCode == 15)
16 {
18 }
19 return System.IO.Win32Marshal.GetExceptionForWin32Error(errorCode, driveName);
20 }
21}
static Exception GetExceptionForLastWin32DriveError(string driveName)
Definition Error.cs:7
static Exception GetExceptionForWin32DriveError(int errorCode, string driveName)
Definition Error.cs:13
static Exception GetExceptionForWin32Error(int errorCode, string path="")
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string IO_DriveNotFound_Drive
Definition SR.cs:22
Definition SR.cs:7