示例#1
0
        /// <summary>
        /// Write an internal error to the log. Also prints stack trace along with the message
        /// </summary>
        /// <param name="msg">the message to write to the log</param>
        public void WriteExceptionToLog(String msg)
        {
            WriteToLog("ERROR: " + msg + OSEnvironment.getStackTrace(), true);

            //Product #178, Topic #61: beep on the client side only upon user errors (e.g. duplicate record), otherwise only if started from the studio (F7)
            if (ShouldBeep)
            {
                SoundBeep();
            }
        }