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(), }); }
public static Java.Lang.StackTraceElement[] getStackTrace(this Java.Lang.Throwable throwable) { return(throwable.GetStackTrace()); }