Exemplo n.º 1
0
        public bool IsSimilarTo(BugSenseException that)
        {
            bool res = false;

            res = OriginalException.Equals(that.OriginalException);
            res = res && Name.Equals(that.Name);
            res = res && StackTrace.Equals(that.StackTrace);
            res = res && ClassName.Equals(that.ClassName);
            res = res && Where.Equals(that.Where);
            res = res && Tag.Equals(that.Tag);
            res = res && Breadcrumbs.Equals(that.Breadcrumbs);
            res = res && (Handled == that.Handled);

            return res;
        }
Exemplo n.º 2
0
        public BugSenseExceptionRequest(BugSenseException ex, AppEnvironment environment, 
			Dictionary<string, string> extradata)
        {
            Client = new BugSenseClient();
            Request = new BugSenseInternalRequest();
            Request.Tag = string.IsNullOrEmpty(ex.Tag) ? null : ex.Tag;
            //TODO: Comment should ask user for feedback
            Request.Comment = "";
            Exception = ex;
            AppEnvironment = environment;
            LogData = extradata;
        }
Exemplo n.º 3
0
 public static BugSenseException ToBugSenseEx(this Exception ex, string excMsg, bool handled,
     string tag = null, string breadcrumbs = null)
 {
     BugSenseException be = new BugSenseException();
     be.Tag = tag;
     be.ClassName = ex.GetType().FullName;
     be.DateOccured = DateTime.Now;
     be.Name = ex.Message;
     be.StackTrace = GetStackTrace(ex, excMsg);
     be.Where = "NA";
     be.OriginalException = ex;
     be.Breadcrumbs = breadcrumbs;
     be.Handled = handled ? 1 : 0;
     return be;
 }