41 references to ExceptionUtility
System.Runtime.Serialization.Schema (41)
System\Runtime\Serialization\Schema\CodeExporter.cs (15)
22using ExceptionUtil = System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility; 81throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CLRNamespaceMappedMultipleTimes, currentDataContractNamespace, dataContractNamespace, clrNamespace))); 238throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.UnexpectedContractType, GetClrTypeFullName(dataContract.GetType()), GetClrTypeFullName(dataContract.UnderlyingType)))); 265throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.TypeCannotBeImported, typeName.Name, typeName.Namespace, SR.Format(SR.CircularTypeReference, classContract.XmlName.Name, classContract.XmlName.Namespace)))); 441throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.CannotComputeUniqueName, typeName))); 551throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.XmlName.Name, dataContract.XmlName.Namespace))); 560throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.TypeMustBeIXmlSerializable, GetClrTypeFullName(type), GetClrTypeFullName(typeof(IXmlSerializable)), dataContract.XmlName.Name, dataContract.XmlName.Namespace))); 569throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.XmlName.Name, dataContract.XmlName.Namespace))); 579throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedTypeDoesNotMatch, 1054throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotDeriveFromSealedReferenceType, dataContract.XmlName.Name, dataContract.XmlName.Namespace, GetClrTypeFullName(baseType)))); 1116throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.InvalidClrNamespaceGeneratedForISerializable, classDataContract.XmlName.Name, classDataContract.XmlName.Namespace, SchemaImportHelper.GetDataContractNamespaceFromUri(classDataContract.XmlName.Namespace), contractCodeDomInfo.ClrNamespace))); 1126throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.InvalidClrNameGeneratedForISerializable, classDataContract.XmlName.Name, classDataContract.XmlName.Namespace, contractCodeDomInfo.TypeDeclaration.Name))); 1201throw ExceptionUtil.ThrowHelperError(new InvalidOperationException( 1229throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.ReferencedBaseTypeDoesNotExist, 1603throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.CannotComputeUniqueName, nsFragment)));
System\Runtime\Serialization\Schema\ContractCodeDomInfo.cs (3)
11using ExceptionUtil = System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility; 29throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotSetNamespaceForReferencedType, TypeReference?.BaseType))); 50throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.CannotSetMembersForReferencedType, TypeReference?.BaseType)));
System\Runtime\Serialization\Schema\XsdDataContractImporter.cs (23)
13using ExceptionUtil = System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility; 82throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 96throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 99throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeNames))); 113throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 116throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 133throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 136throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 153throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 168throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 171throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeNames))); 186throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 189throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 204throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(schemas))); 207throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 236throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(element))); 238throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 248throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 255throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.TypeHasNotBeenImported, typeName.Name, typeName.Namespace))); 269throw ExceptionUtil.ThrowHelperError(new ArgumentNullException(nameof(typeName))); 276throw ExceptionUtil.ThrowHelperError(new InvalidOperationException(SR.Format(SR.TypeHasNotBeenImported, typeName.Name, typeName.Namespace))); 372throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.AnnotationAttributeNotFound, ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, ImportGlobals.ActualTypeNameAttribute))); 375throw ExceptionUtil.ThrowHelperError(new InvalidDataContractException(SR.Format(SR.AnnotationAttributeNotFound, ActualTypeAnnotationName.Name, typeName.Name, typeName.Namespace, ImportGlobals.ActualTypeNamespaceAttribute)));