Пример #1
0
        private static string GetBaseMessage(ErrorClass errorClass, ErrorCode errorCode, string message)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(errorClass.ToString());
            sb.Append(": ");
            sb.Append(errorCode.ToString());
            if (message != null)
            {
                sb.Append(" '").Append(message).Append("'");
            }
            return(sb.ToString());
        }