Exemple #1
0
        public static string fehlermeldungErzeugen(string ortsBeschreibung, Exception oE, string benutzerBeschreibung, HttpContext context)
        {
            StringBuilder stringBuilder = new StringBuilder();
            List <string> list          = new List <string>();

            if (ortsBeschreibung != null)
            {
                list.Add("Ort: " + ortsBeschreibung);
            }
            if (context != null && context.Session != null && context.Session["UserSession.LogSessionIDKey"] != null)
            {
                list.Add("SessionLog-ID: " + context.Session["UserSession.LogSessionIDKey"]);
            }
            if (!string.IsNullOrEmpty(benutzerBeschreibung))
            {
                list.Add("Angemeldeter Benutzer: " + benutzerBeschreibung);
            }
            return(Fehlerbehandlung.GenExceptionInfos(oE, list.ToArray()));
        }
Exemple #2
0
 public static string GenExceptionInfos(Exception exception, params string[] zusatzinformationszeilen)
 {
     return(Fehlerbehandlung.GenExceptionInfos(exception, true, zusatzinformationszeilen));
 }