public static string GetMessage(this AutoModErrorCode code)
        {
            if (code.IsSilent())
            {
                return(string.Empty);
            }

            return(code switch
            {
                AutoModErrorCode.NotEnoughSpace => "Not enough space in the box.",
                AutoModErrorCode.InvalidLines => "Invalid lines detected.",
                _ => string.Empty,
            });
Exemple #2
0
        public static string GetMessage(this AutoModErrorCode code)
        {
            if (code.IsSilent())
            {
                return(string.Empty);
            }

            switch (code)
            {
            case AutoModErrorCode.NotEnoughSpace:
                return("Not enough space in the box.");

            case AutoModErrorCode.InvalidLines:
                return("Invalid lines detected.");

            default:
                return(string.Empty);
            }
        }
Exemple #3
0
 public static bool IsSilent(this AutoModErrorCode code) => code <= AutoModErrorCode.CODE_SILENT;