/// <summary>
 /// Indicates if <paramref name="exception"/> does not include an exception from <see cref="ServerBasedExceptions"/>
 /// and so is client based.
 /// </summary>
 public static bool IsClientBasedFault(this WrappedServerErrorException exception)
 {
     return(!exception.IsServerBasedFault());
 }
 /// <summary>
 /// Indicates if <paramref name="exception"/> includes an exception of type <typeparam name="T" />
 /// </summary>
 public static bool IncludesExceptionOfType <T>(this WrappedServerErrorException exception)
 {
     return(string.Equals(exception?.Error?.ExceptionType, typeof(T).ToString(), StringComparison.Ordinal));
 }
 /// <summary>
 /// Indicates if <paramref name="exception"/> includes an exception from <see cref="ServerBasedExceptions"/>
 /// and so is server based.
 /// </summary>
 public static bool IsServerBasedFault(this WrappedServerErrorException exception)
 {
     return(exception?.Error?.ExceptionType != null && InternalServerBasedExceptions.ContainsValue(exception.Error.ExceptionType));
 }
 /// <summary>
 /// Indicates if <paramref name="exception"/> includes an <c>System.ServiceModel.EndpointNotFoundException</c>
 /// </summary>
 public static bool IncludesNotFoundException(this WrappedServerErrorException exception)
 {
     return(string.Equals(exception?.Error?.ExceptionType, "System.EndpointNotFoundException", StringComparison.Ordinal));
 }