Sign in

RCS / RCS_Differential_Slam_Changsha · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • RCS_Differential_Slam_Changsha
  • RCS.Infrastructure
  • ExceptionHelp.cs
  • 提交
    5e77d252
    彭传飞 authored
    2024-11-19 15:51:23 +0800  
    Browse Code »
ExceptionHelp.cs 410 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
using System;

namespace Infrastructure
{
    public static class ExceptionHelp
    {
        public static string GetAllMessage(Exception e)
        {
            string message = e.Message + "\r\n";

            while (e.InnerException != null)
            {
                e = e.InnerException;
                message += e.Message + "\r\n";
            }

            return message;
        }
    }
}