CarotDav_decompile/CarotDAV/ExceptionOccurredEventArgs.cs

90 lines
1.8 KiB
C#

// Decompiled with JetBrains decompiler
// Type: CarotDAV.ExceptionOccurredEventArgs
// Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null
// MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8
// Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe
using System;
namespace CarotDAV
{
public class ExceptionOccurredEventArgs : EventArgs
{
private string pMessage;
private string pTarget;
private Exception pException;
private ErrorPromptType pType;
private ErrorPromptFormResult pResult;
private int pRetryMinutes;
public ExceptionOccurredEventArgs(string message, string target, ErrorPromptType type, Exception ex, int retryminutes)
{
this.pMessage = message;
this.pException = ex;
this.pType = type;
this.pTarget = target;
this.pResult = new ErrorPromptFormResult();
this.pResult.ToAll = false;
this.pResult.Action = ErrorAction.Ignore;
this.pRetryMinutes = retryminutes;
}
public ExceptionOccurredEventArgs(string message, Uri target, ErrorPromptType type, Exception ex, int retryminutes)
: this(message, target.ToString(), type, ex, retryminutes)
{
}
public string Message
{
get
{
return this.pMessage;
}
}
public string Target
{
get
{
return this.pTarget;
}
}
public ErrorPromptType Type
{
get
{
return this.pType;
}
}
public Exception Exception
{
get
{
return this.pException;
}
}
public ErrorPromptFormResult Result
{
get
{
return this.pResult;
}
set
{
this.pResult = value;
}
}
public int RetryMinutes
{
get
{
return this.pRetryMinutes;
}
}
}
}