Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / ExceptionUtil.cs / 1305376 / 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
- ContextStaticAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- LayoutEvent.cs
- ProfessionalColorTable.cs
- SecurityTokenTypes.cs
- ExpressionPrefixAttribute.cs
- infer.cs
- DataContractJsonSerializerOperationFormatter.cs
- SerializerDescriptor.cs
- EnumMember.cs
- SortedDictionary.cs
- TaskHelper.cs
- DetailsViewPageEventArgs.cs
- CodeNamespaceCollection.cs
- SettingsPropertyCollection.cs
- Rect3DConverter.cs
- TemplateControlBuildProvider.cs
- ReliableChannelBinder.cs
- StringExpressionSet.cs
- TrustSection.cs
- TextContainerHelper.cs
- NavigationExpr.cs
- ProtocolImporter.cs
- CallbackValidator.cs
- ToolTipAutomationPeer.cs
- BitmapPalettes.cs
- WindowsAuthenticationEventArgs.cs
- SmtpMail.cs
- WeakRefEnumerator.cs
- CompositeDuplexBindingElementImporter.cs
- BindingExpressionUncommonField.cs
- DataBoundControlAdapter.cs
- BitmapEffectInputConnector.cs
- SchemaCollectionCompiler.cs
- DefaultExpressionVisitor.cs
- ScriptControl.cs
- TableParaClient.cs
- SequenceDesignerAccessibleObject.cs
- ClientData.cs
- TimeSpanMinutesConverter.cs
- FillRuleValidation.cs
- MarkerProperties.cs
- ExceptQueryOperator.cs
- QueueNameHelper.cs
- DbDataReader.cs
- ColorMap.cs
- DocumentViewerBaseAutomationPeer.cs
- FieldNameLookup.cs
- TextTabProperties.cs
- RadioButtonList.cs
- FileSystemEnumerable.cs
- TextRangeAdaptor.cs
- DesignerUtility.cs
- ScrollViewerAutomationPeer.cs
- _FtpDataStream.cs
- AQNBuilder.cs
- ToolStripItemTextRenderEventArgs.cs
- DropShadowEffect.cs
- DynamicMethod.cs
- XmlSchemaAny.cs
- MenuCommandsChangedEventArgs.cs
- ObjectResult.cs
- DrawingAttributes.cs
- Point3D.cs
- AdjustableArrowCap.cs
- ObjectViewListener.cs
- IDReferencePropertyAttribute.cs
- DbParameterCollection.cs
- PackagingUtilities.cs
- ControlLocalizer.cs
- HashLookup.cs
- VoiceSynthesis.cs
- ValidationError.cs
- GradientStop.cs
- NameSpaceExtractor.cs
- WebPartEventArgs.cs
- ValueConversionAttribute.cs
- StorageTypeMapping.cs
- ApplicationDirectoryMembershipCondition.cs
- BindingCompleteEventArgs.cs
- ChtmlTextWriter.cs
- XmlNodeComparer.cs
- PageResolution.cs
- VariableQuery.cs
- DataRelation.cs
- EventArgs.cs
- StylusButtonCollection.cs
- TextModifierScope.cs
- TextLine.cs
- DiscoveryClient.cs
- GroupBoxAutomationPeer.cs
- Empty.cs
- ToolboxDataAttribute.cs
- ObjectViewQueryResultData.cs
- _NetRes.cs
- DockProviderWrapper.cs
- Int16.cs
- ManipulationDelta.cs
- HWStack.cs
- EmptyCollection.cs