public override RpcFaultException CreateFault(RpcFaultException <TFault> exception)
        {
            if (exception is null)
            {
                throw new ArgumentNullException(nameof(exception));
            }

            return(new RpcFaultException <TFault>(exception.Message, exception.Fault));
        }
Ejemplo n.º 2
0
        internal Exception?TryConvertException(RpcFaultException faultException)
        {
            foreach (var converter in this.customExceptionConverters)
            {
                var exception = converter.TryCreateException(faultException);
                if (exception != null)
                {
                    return(exception);
                }
            }

            return(baseHandler?.TryConvertException(faultException));
        }