Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Util / ExceptionUtil.cs / 1 / ExceptionUtil.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Util { using System; using System.Web; static internal class ExceptionUtil { static internal ArgumentException ParameterInvalid(string parameter) { return new ArgumentException(SR.GetString(SR.Parameter_Invalid, parameter), parameter); } static internal ArgumentException ParameterNullOrEmpty(string parameter) { return new ArgumentException(SR.GetString(SR.Parameter_NullOrEmpty, parameter), parameter); } static internal ArgumentException PropertyInvalid(string property) { return new ArgumentException(SR.GetString(SR.Property_Invalid, property), property); } static internal ArgumentException PropertyNullOrEmpty(string property) { return new ArgumentException(SR.GetString(SR.Property_NullOrEmpty, property), property); } static internal InvalidOperationException UnexpectedError(string methodName) { return new InvalidOperationException(SR.GetString(SR.Unexpected_Error, methodName)); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MetadataArtifactLoaderResource.cs
- xmlglyphRunInfo.cs
- ApplicationFileParser.cs
- XmlSchemaIdentityConstraint.cs
- BinaryCommonClasses.cs
- StructuredTypeInfo.cs
- InvokePattern.cs
- GenericUI.cs
- AsyncSerializedWorker.cs
- PixelFormats.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- BufferModesCollection.cs
- Utilities.cs
- XmlRawWriter.cs
- DataRecordInternal.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- Int16Converter.cs
- GacUtil.cs
- DmlSqlGenerator.cs
- XmlUTF8TextWriter.cs
- EngineSite.cs
- ActivityValidationServices.cs
- ScrollableControl.cs
- SerializationHelper.cs
- CustomError.cs
- ContentWrapperAttribute.cs
- XmlHelper.cs
- SqlConnectionStringBuilder.cs
- PreDigestedSignedInfo.cs
- TemplateInstanceAttribute.cs
- ControlIdConverter.cs
- PropertyInformation.cs
- DataReaderContainer.cs
- PickDesigner.xaml.cs
- AttributeConverter.cs
- TransactionCache.cs
- MappingModelBuildProvider.cs
- InputMethodStateTypeInfo.cs
- TextServicesPropertyRanges.cs
- HttpHeaderCollection.cs
- ClientTargetSection.cs
- File.cs
- DataServiceContext.cs
- SizeLimitedCache.cs
- PopupEventArgs.cs
- XmlILIndex.cs
- ChineseLunisolarCalendar.cs
- XmlSchemaAnyAttribute.cs
- SecurityContextTokenValidationException.cs
- XamlRtfConverter.cs
- Group.cs
- PriorityBindingExpression.cs
- XmlSchemaAnyAttribute.cs
- PeerApplication.cs
- SchemaTableOptionalColumn.cs
- WebHeaderCollection.cs
- DbConnectionPool.cs
- RadioButtonBaseAdapter.cs
- X509Certificate.cs
- HtmlMeta.cs
- DesignerRegionCollection.cs
- Trigger.cs
- ChtmlImageAdapter.cs
- TimeEnumHelper.cs
- XmlBinaryReader.cs
- Pointer.cs
- StorageComplexTypeMapping.cs
- IIS7UserPrincipal.cs
- UserPreferenceChangedEventArgs.cs
- TextRangeEditTables.cs
- MessageSecurityVersion.cs
- RepeatBehaviorConverter.cs
- StringSource.cs
- WsdlEndpointConversionContext.cs
- StronglyTypedResourceBuilder.cs
- MemoryStream.cs
- EncryptedKey.cs
- XsdDataContractImporter.cs
- ZipIORawDataFileBlock.cs
- SystemUnicastIPAddressInformation.cs
- ExecutionPropertyManager.cs
- AccessDataSourceDesigner.cs
- TreeNode.cs
- Span.cs
- ListBoxDesigner.cs
- ValidationRule.cs
- ExcCanonicalXml.cs
- SystemNetworkInterface.cs
- CacheChildrenQuery.cs
- HandlerWithFactory.cs
- TrustSection.cs
- XmlNodeChangedEventManager.cs
- BamlLocalizationDictionary.cs
- ExpressionPrefixAttribute.cs
- NativeMethods.cs
- SHA384.cs
- PropertyDescriptorCollection.cs
- PreDigestedSignedInfo.cs
- EnumerableRowCollection.cs
- Metafile.cs