14 instantiations of FaultException
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
728var fault = new FaultException<FaultDetail>(
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ServiceChannel.cs (1)
1082throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException<ExceptionDetail>(detail, fault.Reason, fault.Code, action));
System.ServiceModel.Primitives.Tests (11)
ServiceModel\FaultExceptionTest.cs (11)
21var exception = new FaultException<FaultDetail>(detail, reason); 31var exception2 = new FaultException<FaultDetail>(nullDetail, nullReason); 48dcs.WriteObject(ms, new FaultException<FaultDetail>(new FaultDetail("Fault Message"))); 107var exception = new FaultException<FaultDetail>(detail, reason, code); 117exception = new FaultException<FaultDetail> (null,(FaultReason)null,null); 132var exception = new FaultException<FaultDetail>(detail, reason); 140exception = new FaultException<FaultDetail>(null, string.Empty); 157var exception = new FaultException<FaultDetail>(detail, reason, code); 167exception = new FaultException<FaultDetail>(null, (string)null, null); 184var exception = new FaultException<FaultDetail>(detail, reason, code, action); 199exception = new FaultException<FaultDetail>(null, string.Empty, null, null);
UnitTests.Common (1)
TestTypes.cs (1)
707throw new FaultException<FaultDetail>(
38 references to FaultException
Client.ExpectedExceptions.IntegrationTests (8)
ExpectedExceptionTests.4.0.0.cs (4)
158FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 193FaultException<ExceptionDetail> exception = Assert.Throws<FaultException<ExceptionDetail>>(() =>
ExpectedExceptionTests.4.1.0.cs (4)
238FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 290FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() =>
Contract.Fault.IntegrationTests (12)
FaultExceptionTests.4.0.0.cs (12)
24FaultException<FaultDetail> exception = Assert.Throws<FaultException<FaultDetail>>(() => 58FaultException<ExceptionDetail> exception = Assert.Throws<FaultException<ExceptionDetail>>(() => 91FaultException<int> thrownException = null; 101thrownException = Assert.Throws<FaultException<int>>(() => 130var exception = Assert.Throws<FaultException<FaultDetail>>(() => 167var exception = Assert.Throws<FaultException<FaultDetail2>>(() => 204var exception = Assert.Throws<FaultException<FaultDetail>>(() =>
Contract.XmlSerializer.IntegrationTests (2)
XmlSerializerFormatTest.cs (2)
87catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException) 109catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException)
dotnet-svcutil.xmlserializer.IntegrationTests (2)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (2)
87catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException) 109catch (FaultException<FaultDetailWithXmlSerializerFormatAttribute> fException)
ScenarioTests.Common.Tests (1)
ScenarioTestTypes.cs (1)
728var fault = new FaultException<FaultDetail>(
System.ServiceModel.Primitives (3)
System\ServiceModel\Dispatcher\FaultFormatter.cs (3)
53if (faultType.IsGenericType() && (faultType.GetGenericTypeDefinition() == typeof(FaultException<>))) 173Type knownFaultType = typeof(FaultException<>).MakeGenericType(detailType); 220public OperationFault(XmlObjectSerializer serializer, FaultException<T> faultException) :
System.ServiceModel.Primitives.Tests (10)
ServiceModel\FaultExceptionTest.cs (10)
21var exception = new FaultException<FaultDetail>(detail, reason); 31var exception2 = new FaultException<FaultDetail>(nullDetail, nullReason); 43var dcs = new DataContractSerializer(typeof(FaultException<FaultDetail>)); 52var faultException = (FaultException<FaultDetail>)dcs.ReadObject(ms); 107var exception = new FaultException<FaultDetail>(detail, reason, code); 132var exception = new FaultException<FaultDetail>(detail, reason); 157var exception = new FaultException<FaultDetail>(detail, reason, code); 184var exception = new FaultException<FaultDetail>(detail, reason, code, action); 190Assert.IsType<FaultException<FaultDetail>>(exception);