示例#1
0
        private ExceptionInfo ConvertThrowable (Java.Lang.Throwable ex)
        {
            var type = ex.GetType ();

            return new ExceptionInfo () {
                Name = type.Name,
                Message = ex.LocalizedMessage,
                Stack = ex.GetStackTrace ().Select ((frame) => new StackInfo () {
                    Method = String.Format ("{0}:{1}", frame.ClassName, frame.MethodName),
                    File = frame.FileName ?? "Unknown",
                    Line = frame.LineNumber,
                    InProject = IsInProject (frame.ClassName),
                }).ToList (),
            };
        }