3 types derived from FaultException
System.ServiceModel (2)
System\ServiceModel\Dispatcher\NetDispatcherFaultException.cs (1)
10internal class NetDispatcherFaultException : FaultException
System\ServiceModel\FaultException.cs (1)
379public class FaultException<TDetail> : FaultException
System.ServiceModel.Web (1)
System\ServiceModel\Web\WebFaultException.cs (1)
21public class WebFaultException : FaultException, IWebFaultException
47 instantiations of FaultException
System.ServiceModel (15)
System\ServiceModel\Channels\OneWayChannelFactory.cs (1)
219innerException = new FaultException(messageFault);
System\ServiceModel\Channels\ServiceChannel.cs (1)
1152throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException(fault, action));
System\ServiceModel\Channels\TransactionChannel.cs (1)
101FaultException fault = new FaultException(reason, code, FaultCodeConstants.Actions.Transactions);
System\ServiceModel\ComIntegration\Error.cs (1)
131return new FaultException(reasonObj, codeObj);
System\ServiceModel\Dispatcher\AuthenticationBehavior.cs (1)
154return new FaultException(faultReason, faultCode);
System\ServiceModel\Dispatcher\AuthorizationBehavior.cs (1)
166return new FaultException(faultReason, faultCode);
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1210FaultException exception = new FaultException(reason, code);
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
820FaultException exception = new FaultException(reason, code);
System\ServiceModel\Dispatcher\FaultFormatter.cs (2)
67return new FaultException(messageFault, action); 137return new FaultException(messageFault, action);
System\ServiceModel\Dispatcher\TransactionBehavior.cs (1)
68return new FaultException(reason, code, action);
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
113return new FaultException(messageFault, action);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
928this.Fault(new FaultException(sessionAbortedFault)); 2928throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(SR.GetString(SR.SecuritySessionFaultReplyWasSent), new FaultException(protocolFault)));
System\ServiceModel\Security\SecurityUtils.cs (1)
1259Exception faultException = new FaultException(fault, message.Headers.Action);
System.ServiceModel.Activities (21)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (5)
258new FaultException( 433throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateUpdateFailedFault( 517throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateUpdateFailedFault( 601throw FxTrace.Exception.AsError(new FaultException( 871return new FaultException(OperationExecutionFault.CreateInstanceNotFoundFault(exception.Message));
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
115throw FxTrace.Exception.AsError(new FaultException( 120throw FxTrace.Exception.AsError(new FaultException(
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (13)
409AbortInstance(new FaultException(OperationExecutionFault.CreateAbortedFault(SR.DefaultAbortReason)), false); 1158return BeginTerminate(new FaultException(fault.Reason, fault.Code), transaction, timeout, callback, state); 1779throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateAbortedFault(SR.WorkflowInstanceAborted(this.Id)))); 1789throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateTerminatedFault(SR.WorkflowInstanceTerminated(this.Id)))); 1793throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateCompletedFault(SR.WorkflowInstanceCompleted(this.Id)))); 1802throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateInstanceUnloadedFault(SR.WorkflowInstanceUnloaded(this.Id)))); 2177FaultPendingRequests(new FaultException(OperationExecutionFault.CreateTerminatedFault(SR.WorkflowInstanceTerminated(this.Id)))); 2181FaultPendingRequests(new FaultException(OperationExecutionFault.CreateCompletedFault(SR.WorkflowInstanceCompleted(this.Id)))); 2345throw FxTrace.Exception.AsError(new FaultException( 2356throw FxTrace.Exception.AsError(new FaultException( 2363throw FxTrace.Exception.AsError(new FaultException( 2377throw FxTrace.Exception.AsError(new FaultException( 5991IAsyncResult result = this.instance.BeginAbandon(new FaultException(OperationExecutionFault.CreateAbortedFault(SR.DefaultAbortReason)), false,
System\ServiceModel\Activities\WorkflowOperationContext.cs (1)
692throw FxTrace.Exception.AsError(new FaultException(OperationExecutionFault.CreateOperationNotAvailableFault(thisPtr.workflowInstance.Id, thisPtr.bookmark.Name)));
System.ServiceModel.Web (2)
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (2)
349new FaultException(MessageFault.CreateFault(faultCode, faultDetail.Message))); 355new FaultException(MessageFault.CreateFault(faultCode,
System.WorkflowServices (9)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
539throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FaultException(new DurableDispatcherAddressingFault()));
System\ServiceModel\Dispatcher\WorkflowDurableInstance.cs (1)
81throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FaultException(new DurableDispatcherAddressingFault()));
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
230callbackState.WorkflowRequestContext.SendFault(new FaultException(operationFault), null);
System\Workflow\Activities\ReceiveActivity.cs (6)
509requestContext.SendFault(new FaultException(SR2.GetString(SR2.SecurityCheckFailed)), null); 528new FaultException(SR2.GetString(SR2.Error_FailedToValidateActivatingMessage, this.WorkflowInstanceId))); 935requestContext.SendFault(new FaultException(SR2.GetString(SR2.SecurityCheckFailed)), null); 954new FaultException(SR2.GetString(SR2.Error_FailedToValidateActivatingMessage, this.WorkflowInstanceId))); 1662requestContext.SendFault(new FaultException(SR2.GetString(SR2.SecurityCheckFailed)), null); 1681new FaultException(SR2.GetString(SR2.Error_FailedToValidateActivatingMessage, this.receiveActivity.WorkflowInstanceId)));
122 references to FaultException
SMSvcHost (1)
System\ServiceModel\Activation\WorkerProcess.cs (1)
129if (exception is FaultException && !AppSettings.FailOnConnectionDispatchFaults)
System.ServiceModel (87)
System\ServiceModel\Channels\ChannelReliableSession.cs (1)
424e = new ProtocolException(SR.GetString(SR.WrongIdentifierFault, FaultException.GetSafeReasonText(info.WsrmHeaderFault.Reason)));
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3261throw FxTrace.Exception.AsError<FaultException>(task.Exception);
System\ServiceModel\Channels\HttpChannelListener.cs (1)
1501FxTrace.Exception.AsError<FaultException>(task.Exception);
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
3237string reason = FaultException.GetSafeReasonText(fault); 3260return new EndpointNotFoundException(FaultException.GetSafeReasonText(fault)); 3275return new ProtocolException(SR.GetString(SR.UnrecognizedFaultReceivedOnOpen, fault.Code.Namespace, fault.Code.Name, FaultException.GetSafeReasonText(fault)));
System\ServiceModel\Channels\ServiceChannel.cs (1)
1015FaultException fe = rpc.Operation.FaultFormatter.Deserialize(fault, action);
System\ServiceModel\Channels\TransactionChannel.cs (1)
101FaultException fault = new FaultException(reason, code, FaultCodeConstants.Actions.Transactions);
System\ServiceModel\Channels\TransactionChannelListener.cs (2)
414catch (FaultException fault) 541catch (FaultException fault)
System\ServiceModel\Channels\WsrmFault.cs (2)
100message = FaultException.GetSafeReasonText(this.reason); 665message = FaultException.GetSafeReasonText(this.Reason);
System\ServiceModel\Channels\WsrmMessageInfo.cs (1)
598messageInfo.faultException = new ProtocolException(SR.GetString(SR.UnrecognizedFaultReceived, messageInfo.faultInfo.Code.Namespace, messageInfo.faultInfo.Code.Name, System.ServiceModel.FaultException.GetSafeReasonText(messageInfo.faultInfo)));
System\ServiceModel\ComIntegration\ComPlusThreadInitializer.cs (1)
157catch (FaultException e)
System\ServiceModel\ComIntegration\Error.cs (1)
17const string FaultNamespace = System.ServiceModel.FaultException.Namespace;
System\ServiceModel\Dispatcher\AsyncMethodInvoker.cs (2)
148if (e is FaultException) 233catch (FaultException)
System\ServiceModel\Dispatcher\ChannelHandler.cs (1)
1210FaultException exception = new FaultException(reason, code);
System\ServiceModel\Dispatcher\DispatchRuntime.cs (1)
820FaultException exception = new FaultException(reason, code);
System\ServiceModel\Dispatcher\ErrorBehavior.cs (4)
32FaultException fault = error as FaultException; 98FaultException e = error as FaultException;
System\ServiceModel\Dispatcher\FaultFormatter.cs (8)
41public MessageFault Serialize(FaultException faultException, out string action) 48for (Type faultType = faultException.GetType(); faultType != typeof(FaultException); faultType = faultType.BaseType) 64public FaultException Deserialize(MessageFault messageFault, string action) 95protected virtual FaultException CreateFaultException(MessageFault messageFault, string action) 127FaultException faultException = CreateFaultException(messageFault, action, 140protected FaultException CreateFaultException(MessageFault messageFault, string action, 161return (FaultException)Activator.CreateInstance(knownFaultType, 185static MessageFault CreateMessageFault(XmlObjectSerializer serializer, FaultException faultException, Type detailType)
System\ServiceModel\Dispatcher\IClientFaultFormatter.cs (1)
12FaultException Deserialize(MessageFault messageFault, string action);
System\ServiceModel\Dispatcher\IDispatchFaultFormatter.cs (1)
13MessageFault Serialize(FaultException faultException, out string action);
System\ServiceModel\Dispatcher\ImmutableDispatchRuntime.cs (1)
1670catch (FaultException e)
System\ServiceModel\Dispatcher\MessageRpc.cs (1)
449if (exceptionType.IsAssignableFrom(typeof(FaultException)))
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (1)
176catch (System.ServiceModel.FaultException)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
128if (ae.InnerException is FaultException)
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (2)
69protected override FaultException CreateFaultException(MessageFault messageFault, string action) 103FaultException faultException = CreateFaultException(messageFault, action,
System\ServiceModel\ExceptionMapper.cs (4)
37public virtual FaultException FromException(Exception ex) 49public virtual FaultException FromException(Exception ex, string soapNamespace, string trustNamespace) 67if (ex is FaultException) 74FaultException faultException = FromException(ex);
System\ServiceModel\FaultException.cs (33)
17[KnownType(typeof(FaultException.FaultCodeData))] 18[KnownType(typeof(FaultException.FaultCodeData[]))] 19[KnownType(typeof(FaultException.FaultReasonData))] 20[KnownType(typeof(FaultException.FaultReasonData[]))] 33this.code = FaultException.DefaultCode; 34this.reason = FaultException.DefaultReason; 40this.code = FaultException.DefaultCode; 41this.reason = FaultException.CreateReason(reason); 45: base(FaultException.GetSafeReasonText(reason)) 47this.code = FaultException.DefaultCode; 48this.reason = FaultException.EnsureReason(reason); 54this.code = FaultException.EnsureCode(code); 55this.reason = FaultException.CreateReason(reason); 59: base(FaultException.GetSafeReasonText(reason)) 61this.code = FaultException.EnsureCode(code); 62this.reason = FaultException.EnsureReason(reason); 68this.code = FaultException.EnsureCode(code); 69this.reason = FaultException.CreateReason(reason); 76this.code = FaultException.EnsureCode(code); 77this.reason = FaultException.CreateReason(reason); 82: base(FaultException.GetSafeReasonText(reason)) 84this.code = FaultException.EnsureCode(code); 85this.reason = FaultException.EnsureReason(reason); 90: base(FaultException.GetSafeReasonText(reason), innerException) 92this.code = FaultException.EnsureCode(code); 93this.reason = FaultException.EnsureReason(reason); 98: base(FaultException.GetSafeReasonText(GetReason(fault))) 103this.code = FaultException.EnsureCode(fault.Code); 104this.reason = FaultException.EnsureReason(fault.Reason); 109: base(FaultException.GetSafeReasonText(GetReason(fault))) 151get { return FaultException.GetSafeReasonText(this.Reason); } 179public static FaultException CreateFault(MessageFault messageFault, params Type[] faultDetailTypes) 184public static FaultException CreateFault(MessageFault messageFault, string action, params Type[] faultDetailTypes)
System\ServiceModel\Security\SecurityUtils.cs (5)
1300FaultException faultException = FaultException.CreateFault(fault, typeof(string), typeof(object)); 1326FaultException faultException = null; 1354else if (e is FaultException) 1356faultException = (FaultException)e;
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
254catch (FaultException fault)
System\ServiceModel\Security\WSTrustChannel.cs (2)
402FaultException faultException = FaultException.CreateFault(fault, action);
System\ServiceModel\Security\WSTrustServiceContract.cs (2)
679if (String.IsNullOrEmpty(trustNamespace) || String.IsNullOrEmpty(action) || preserveOriginalException || ex is FaultException) 686FaultException faultException = OperationContext.Current.Host.Credentials.ExceptionMapper.FromException(ex, (requestEnvelopeVersion == EnvelopeVersion.Soap11) ? soap11Namespace : soap12Namespace, trustNamespace);
System\ServiceModel\Transactions\WsatProxy.cs (1)
189inner is FaultException)
System.ServiceModel.Activities (25)
System\ServiceModel\Activities\Dispatcher\ControlOperationInvoker.cs (3)
640catch (FaultException) 723catch (FaultException) 869static FaultException CreateFaultException(InstancePersistenceException exception)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
247exception is FaultException ||
System\ServiceModel\Activities\Dispatcher\OperationExecutionFault.cs (1)
139public static bool IsAbortedFaultException(FaultException exception)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
2549catch (FaultException exception) 2609catch (FaultException exception)
System\ServiceModel\Activities\IWorkflowInstanceManagement.cs (13)
19[Fx.Tag.Throws(typeof(FaultException), "Instance not found")] 29[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 39[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is locked under transaction")] 49[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is locked under transaction")] 59[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 69[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is locked under transaction")] 83[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 94[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 105[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 116[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is supended or locked under transaction")] 127[Fx.Tag.Throws(typeof(FaultException), "Instance with specified identifier not found or it is locked under a transaction")] 143[Fx.Tag.Throws(typeof(FaultException), "Instance not found, locked under transaction, or update unsuccessful")] 154[Fx.Tag.Throws(typeof(FaultException), "Instance not found, locked under transaction, or update unsuccessful")]
System\ServiceModel\Activities\MessagingActivityHelper.cs (1)
23static Type faultExceptionType = typeof(FaultException);
System\ServiceModel\Activities\ToReply.cs (2)
187FaultException faultException = exception as FaultException;
System\ServiceModel\Activities\WorkflowHostingEndpoint.cs (1)
83internal static FaultException CreateDispatchFaultException()
System\ServiceModel\Activities\WorkflowOperationContext.cs (1)
762if (completionException is FaultException)
System.ServiceModel.Web (3)
System\ServiceModel\Dispatcher\WebErrorHandler.cs (2)
48FaultException errorAsFaultException = error as FaultException;
System\ServiceModel\Dispatcher\WebFaultFormatter.cs (1)
19public MessageFault Serialize(FaultException faultException, out string action)
System.WorkflowServices (6)
System\ServiceModel\Dispatcher\ServiceDurableInstance.cs (1)
432else if (operationException != null && !(operationException is FaultException))
System\ServiceModel\Dispatcher\WorkflowOperationInvoker.cs (1)
179catch (FaultException)
System\ServiceModel\Dispatcher\WorkflowRequestContext.cs (1)
104if (!(exception is FaultException)) //Wrap the exception if it is not FaultException.
System\Workflow\Activities\ReceiveActivity.cs (3)
46typeof(FaultException), 200public FaultException FaultMessage 204return ((FaultException)base.GetValue(ReceiveActivity.FaultMessageProperty));