Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
 public FaultException(FaultReason reason, FaultCode code, string action)
     : base(FaultException.GetSafeReasonText(reason))
 {
     _code   = FaultException.EnsureCode(code);
     _reason = FaultException.EnsureReason(reason);
     _action = action;
 }
Ejemplo n.º 3
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;
        }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
0
 public FaultException(FaultReason reason)
     : base(FaultException.GetSafeReasonText(reason))
 {
     _code   = FaultException.DefaultCode;
     _reason = FaultException.EnsureReason(reason);
 }
Ejemplo n.º 6
0
 public FaultException(FaultReason reason, FaultCode code)
     : base(FaultException.GetSafeReasonText(reason))
 {
     this.code = FaultException.EnsureCode(code);
     this.reason = FaultException.EnsureReason(reason);
 }