/// <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; }
/// <summary> /// Create a standard exception with an error code embedded. /// </summary> /// <param name="reason"></param> public FOEServiceException(FOEStatusCodes reason) : base(reason.ToDescriptionString()) { Reason = reason; }