예제 #1
0
 /// <summary>
 /// Create an exception with error code and message embedded.
 /// </summary>
 /// <param name="reason"></param>
 /// <param name="message"></param>
 public FOEServiceException(FOEStatusCodes reason, string message)
     : base(string.IsNullOrEmpty(message) ? reason.ToDescriptionString() : message)
 {
     Reason = reason;
 }
예제 #2
0
 /// <summary>
 /// Create a standard exception with an error code embedded.
 /// </summary>
 /// <param name="reason"></param>
 public FOEServiceException(FOEStatusCodes reason)
     : base(reason.ToDescriptionString())
 {
     Reason = reason;
 }