Helper to create a new application exception, which has automaticly the last win 32 error code appended. text
(string text)
| 349 | /// </summary> |
| 350 | /// <param name="text">text</param> |
| 351 | private static ApplicationException CreateApplicationException(string text) { |
| 352 | if (text == null || text.Length < 1) |
| 353 | throw new ArgumentNullException("text", "'text' may not be empty or null."); |
| 354 | |
| 355 | return new ApplicationException(string.Format("{0}. Last Win32 Error was {1}", |
| 356 | text, Marshal.GetLastWin32Error())); |
| 357 | } |
| 358 | |
| 359 | } |
| 360 | } |
nothing calls this directly
no outgoing calls
no test coverage detected