Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetExceptionForWin32DriveError()

static Exception System.IO.Error.GetExceptionForWin32DriveError ( int errorCode,
string driveName )
inlinestaticpackage

Definition at line 13 of file Error.cs.

14 {
15 if (errorCode == 3 || errorCode == 15)
16 {
17 return new DriveNotFoundException(System.SR.Format(System.SR.IO_DriveNotFound_Drive, driveName));
18 }
19 return System.IO.Win32Marshal.GetExceptionForWin32Error(errorCode, driveName);
20 }
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

References System.SR.Format(), System.IO.Win32Marshal.GetExceptionForWin32Error(), and System.SR.IO_DriveNotFound_Drive.

Referenced by System.IO.Error.GetExceptionForLastWin32DriveError().