예제 #1
0
 /// <summary>
 ///     Creates a new WinSysException with the specified message from the last error code raised by the operating system.
 /// </summary>
 /// <param name="message">The exception message.</param>
 public WinSysException(string message)
     : this(WinSysUtility.GetLastErrorCode(), message)
 {
 }
예제 #2
0
 /// <summary>
 ///     Creates a new WinSysException with the specified message from the last error code raised by the operating system.
 ///     The Inner Exception is also set; however, this may be considered redundant as the exception is inherently raised by
 ///     a specific kernel fault.
 /// </summary>
 /// <param name="message">The exception message.</param>
 /// <param name="innerException">The inner exception that caused this WinSysException to be thrown.</param>
 public WinSysException(string message, Exception innerException)
     : this(WinSysUtility.GetLastErrorCode(), message, innerException)
 {
 }
예제 #3
0
 /// <summary>
 ///     Creates a new WinSysException from the last error code raised by the operating system.
 /// </summary>
 public WinSysException()
     : this(WinSysUtility.GetLastErrorCode())
 {
 }