Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UpnEndpointIdentity.cs
- PaperSource.cs
- XmlDataSourceView.cs
- AccessControlList.cs
- ConstantCheck.cs
- RuntimeEnvironment.cs
- OutputCacheSettings.cs
- Animatable.cs
- userdatakeys.cs
- WebBrowserUriTypeConverter.cs
- xmlformatgeneratorstatics.cs
- CategoryNameCollection.cs
- ReflectPropertyDescriptor.cs
- AlternationConverter.cs
- tooltip.cs
- ConfigDefinitionUpdates.cs
- PartitionResolver.cs
- WriteLineDesigner.xaml.cs
- XmlCDATASection.cs
- Validator.cs
- ObfuscationAttribute.cs
- PersianCalendar.cs
- SqlMethodCallConverter.cs
- WebPartEventArgs.cs
- Ray3DHitTestResult.cs
- AnimationTimeline.cs
- PeerNearMe.cs
- EditModeSwitchButton.cs
- SqlSupersetValidator.cs
- DiffuseMaterial.cs
- ServerIdentity.cs
- HttpContextWrapper.cs
- IdleTimeoutMonitor.cs
- HttpHandlersSection.cs
- SingleSelectRootGridEntry.cs
- _LocalDataStoreMgr.cs
- CoTaskMemHandle.cs
- LineGeometry.cs
- CheckBoxPopupAdapter.cs
- EdmSchemaError.cs
- BaseParser.cs
- WmfPlaceableFileHeader.cs
- XmlCharCheckingReader.cs
- ValidationPropertyAttribute.cs
- Cell.cs
- Int64Storage.cs
- XmlNavigatorStack.cs
- HttpDictionary.cs
- BitStream.cs
- ErrorHandler.cs
- SecurityUtils.cs
- XmlStreamNodeWriter.cs
- SoundPlayer.cs
- DBConnectionString.cs
- DataPager.cs
- SqlIdentifier.cs
- DocumentPageHost.cs
- RectIndependentAnimationStorage.cs
- ConvertTextFrag.cs
- BasicCommandTreeVisitor.cs
- StreamReader.cs
- OleDbEnumerator.cs
- DataServiceBehavior.cs
- DelegateBodyWriter.cs
- XmlEntityReference.cs
- WebPartDisplayModeCollection.cs
- InvalidateEvent.cs
- GroupAggregateExpr.cs
- ToolboxComponentsCreatedEventArgs.cs
- SettingsPropertyWrongTypeException.cs
- MailWebEventProvider.cs
- WindowsStatusBar.cs
- GlyphCollection.cs
- RightsManagementEncryptionTransform.cs
- AppDomainFactory.cs
- AtlasWeb.Designer.cs
- PathFigureCollection.cs
- TextSelectionHelper.cs
- LinkTarget.cs
- StatementContext.cs
- ThrowHelper.cs
- ImageListStreamer.cs
- InputProcessorProfilesLoader.cs
- KeyInterop.cs
- InstanceDataCollectionCollection.cs
- Renderer.cs
- RequestCachingSection.cs
- ProvidersHelper.cs
- GenericsInstances.cs
- StaticSiteMapProvider.cs
- Decoder.cs
- NameValueCollection.cs
- SchemaObjectWriter.cs
- DataError.cs
- Parameter.cs
- EllipseGeometry.cs
- SemaphoreSecurity.cs
- FreeFormPanel.cs
- MailMessage.cs
- TransformBlockRequest.cs