public string GetErrorMessage <T>(T exceptionCode) { if (exceptionCode is DoctorHouseExceptionCode) { return(DoctorHouseException.GetErrorMessage((DoctorHouseExceptionCode)Enum.Parse(typeof(DoctorHouseExceptionCode), exceptionCode.ToString()))); } else { return(string.Empty); } }
public DoctorHouseException(string target, DoctorHouseExceptionCode code) : base(DoctorHouseException.GetErrorMessage(code)) { this.Target = target; this.Code = code; }
public DoctorHouseException(DoctorHouseExceptionCode code) : base(DoctorHouseException.GetErrorMessage(code)) { this.Code = code; }