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); }
public bool ContainsError(SvnErrorCode code) { return(GetCause(code) != null); }