Example #1
0
        public SvnException GetCause(SvnErrorCode code)
        {
            Exception e = this;

            while (e != null)
            {
                if (e is SvnException svnEx && svnEx.SvnErrorCode == code)
                {
                    return(svnEx);
                }

                e = e.InnerException;
            }

            return(null);
        }
		internal SvnClientException(SvnException ex) : base(ex.Message, ex)
		{
			this.errorCode = ex.SvnErrorCode;
			LoggingService.Debug(ex);
		}
Example #3
0
 internal SvnClientException(SvnException ex) : base(ex.Message, ex)
 {
     this.errorCode = ex.SvnErrorCode;
     LoggingService.Debug(ex);
 }
Example #4
0
 public bool ContainsError(SvnErrorCode code)
 {
     return(GetCause(code) != null);
 }