Пример #1
0
 internal FaultException(string reason, FaultCode code, string action, Exception innerException)
     : base(reason, innerException)
 {
     Code   = FaultException.EnsureCode(code);
     Reason = FaultException.CreateReason(reason);
     Action = action;
 }
Пример #2
0
 public FaultException(string reason, FaultCode code, string action)
     : base(reason)
 {
     Code   = FaultException.EnsureCode(code);
     Reason = FaultException.CreateReason(reason);
     Action = action;
 }
Пример #3
0
 internal FaultException(FaultReason reason, FaultCode code, string action, Exception innerException)
     : base(FaultException.GetSafeReasonText(reason), innerException)
 {
     Code   = FaultException.EnsureCode(code);
     Reason = FaultException.EnsureReason(reason);
     Action = action;
 }
Пример #4
0
 public FaultException(FaultReason reason, FaultCode code, string action)
     : base(FaultException.GetSafeReasonText(reason))
 {
     Code   = FaultException.EnsureCode(code);
     Reason = FaultException.EnsureReason(reason);
     Action = action;
 }
Пример #5
0
        public FaultException(MessageFault fault)
            : base(FaultException.GetSafeReasonText(GetReason(fault)))
        {
            if (fault == null)
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("fault");

            this.code = FaultException.EnsureCode(fault.Code);
            this.reason = FaultException.EnsureReason(fault.Reason);
            this.fault = fault;
        }
Пример #6
0
        public FaultException(MessageFault fault)
            : base(FaultException.GetSafeReasonText(GetReason(fault)))
        {
            if (fault == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(fault));
            }

            Code   = FaultException.EnsureCode(fault.Code);
            Reason = FaultException.EnsureReason(fault.Reason);
            _fault = fault;
        }
Пример #7
0
 public FaultException(FaultReason reason, FaultCode code)
     : base(FaultException.GetSafeReasonText(reason))
 {
     _code   = FaultException.EnsureCode(code);
     _reason = FaultException.EnsureReason(reason);
 }
Пример #8
0
 public FaultException(string reason, FaultCode code)
     : base(reason)
 {
     _code   = FaultException.EnsureCode(code);
     _reason = FaultException.CreateReason(reason);
 }