MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / CreateApplicationException

Method CreateApplicationException

PerformanceMonitor/DebugMonitor.cs:351–357  ·  view source on GitHub ↗

Helper to create a new application exception, which has automaticly the last win 32 error code appended. text

(string text)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected