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
- BasePropertyDescriptor.cs
- MatrixStack.cs
- SpeechSynthesizer.cs
- FileDetails.cs
- ExtendedProperty.cs
- TryExpression.cs
- TextSelectionHighlightLayer.cs
- SystemIPGlobalStatistics.cs
- StackOverflowException.cs
- XmlQueryTypeFactory.cs
- TextTreeRootNode.cs
- XmlDownloadManager.cs
- ContainerUtilities.cs
- DesignerSerializationVisibilityAttribute.cs
- HideDisabledControlAdapter.cs
- ZoneLinkButton.cs
- QuaternionKeyFrameCollection.cs
- HtmlWindow.cs
- Int32EqualityComparer.cs
- CompoundFileReference.cs
- PublisherMembershipCondition.cs
- SimpleBitVector32.cs
- ProjectionPathSegment.cs
- unsafenativemethodsother.cs
- EmptyEnumerator.cs
- StringKeyFrameCollection.cs
- ProjectionCamera.cs
- TextComposition.cs
- HtmlUtf8RawTextWriter.cs
- PropertyValueChangedEvent.cs
- GradientSpreadMethodValidation.cs
- ApplicationServicesHostFactory.cs
- dataSvcMapFileLoader.cs
- ExpressionVisitor.cs
- EntityCollectionChangedParams.cs
- ContentPlaceHolder.cs
- FactoryGenerator.cs
- SchemaDeclBase.cs
- ListViewGroupItemCollection.cs
- EventSetter.cs
- MimeTypeMapper.cs
- BasicViewGenerator.cs
- StatusBarAutomationPeer.cs
- HyperLink.cs
- CodeGroup.cs
- unsafeIndexingFilterStream.cs
- ButtonField.cs
- _LocalDataStore.cs
- XmlSchemaAny.cs
- NavigationWindow.cs
- BitmapEffect.cs
- RegionData.cs
- AutomationPatternInfo.cs
- StructuredTypeInfo.cs
- DateTimeStorage.cs
- OleDbRowUpdatedEvent.cs
- SRGSCompiler.cs
- CoTaskMemHandle.cs
- HelpEvent.cs
- ConfigXmlSignificantWhitespace.cs
- CheckBoxStandardAdapter.cs
- BufferedReadStream.cs
- ping.cs
- HtmlFormParameterWriter.cs
- PropertyGeneratedEventArgs.cs
- RTTypeWrapper.cs
- Exceptions.cs
- NativeBuffer.cs
- HMACSHA384.cs
- WindowsUpDown.cs
- TransportationConfigurationTypeInstallComponent.cs
- TemplateKey.cs
- WindowsScroll.cs
- TransformGroup.cs
- HttpWriter.cs
- HtmlEncodedRawTextWriter.cs
- ConfigurationSettings.cs
- ProfileSettingsCollection.cs
- DecimalFormatter.cs
- MenuAutomationPeer.cs
- MatrixCamera.cs
- MappingException.cs
- FlagPanel.cs
- ContextMarshalException.cs
- UIElement3D.cs
- SoapSchemaExporter.cs
- BaseCollection.cs
- IsolatedStorageFileStream.cs
- InputScope.cs
- OverflowException.cs
- WebPartDescription.cs
- ApplicationContext.cs
- InvalidCardException.cs
- WeakReference.cs
- DesignParameter.cs
- ChineseLunisolarCalendar.cs
- DataGridViewControlCollection.cs
- Stopwatch.cs
- TriggerBase.cs
- controlskin.cs