public CustomException(ErrorCodes.Codes code) : base(code.ToString()) { Logger.Log($"{code.ToString()} {code.GetDescription()}", this.Source); }