Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ErrorFound(Exception e)
- {
- StringBuilder error_string = new StringBuilder();
- error_string.AppendFormat("В файле \"{0}\" \n", e.TargetSite.Module.ScopeName);
- error_string.AppendFormat("В классе \"{0}\" \n", e.TargetSite.DeclaringType);
- error_string.AppendFormat("В методе \"{0}\" \n", e.TargetSite);
- error_string.AppendFormat("Обнаружено исключение: \"{0}\" \n", e.Message);
- error_string.AppendFormat("Типа: \"{0}\"", e.GetBaseException().GetType());
- MessageBox.Show(error_string.ToString(), "Ошибка!");
- Environment.Exit(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement