Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DescendantQuery.cs
- CurrencyWrapper.cs
- WebPartMenuStyle.cs
- HwndProxyElementProvider.cs
- XamlSerializerUtil.cs
- AppDomainAttributes.cs
- TypeElement.cs
- PersonalizationDictionary.cs
- RuntimeConfigLKG.cs
- ReaderWriterLock.cs
- MsmqTransportSecurityElement.cs
- TcpHostedTransportConfiguration.cs
- EntitySetBaseCollection.cs
- CacheDict.cs
- RectKeyFrameCollection.cs
- JobPageOrder.cs
- ScrollItemPatternIdentifiers.cs
- IndentTextWriter.cs
- DynamicILGenerator.cs
- GeneralTransform3D.cs
- SafeMILHandle.cs
- DrawingImage.cs
- PLINQETWProvider.cs
- AutomationEventArgs.cs
- EntityDataSourceState.cs
- counter.cs
- propertytag.cs
- LinqDataSourceView.cs
- SystemResourceHost.cs
- BehaviorEditorPart.cs
- SqlProvider.cs
- ExtensibleSyndicationObject.cs
- FolderLevelBuildProviderCollection.cs
- TemplateColumn.cs
- Regex.cs
- ContextMenu.cs
- TableLayoutSettingsTypeConverter.cs
- ByteStorage.cs
- ConfigXmlText.cs
- HistoryEventArgs.cs
- XmlMapping.cs
- StrongTypingException.cs
- Privilege.cs
- PropertyPathWorker.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripContainer.cs
- DispatcherHookEventArgs.cs
- Context.cs
- NavigationEventArgs.cs
- TextTreeTextNode.cs
- EnumCodeDomSerializer.cs
- XmlArrayAttribute.cs
- SymLanguageVendor.cs
- XmlQueryRuntime.cs
- Group.cs
- RunWorkerCompletedEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- PackUriHelper.cs
- activationcontext.cs
- ResourceDictionary.cs
- X509Utils.cs
- ProfileSettings.cs
- TdsEnums.cs
- HashUtility.cs
- HyperLinkField.cs
- BindingElementExtensionElement.cs
- TextShapeableCharacters.cs
- AddressAlreadyInUseException.cs
- _NestedSingleAsyncResult.cs
- ContractCodeDomInfo.cs
- AsyncOperation.cs
- FontSizeConverter.cs
- SystemWebSectionGroup.cs
- SystemDiagnosticsSection.cs
- UniqueEventHelper.cs
- DataTableClearEvent.cs
- XmlChildEnumerator.cs
- QuestionEventArgs.cs
- Region.cs
- EventBookmark.cs
- MouseGesture.cs
- SettingsPropertyCollection.cs
- StateElement.cs
- Vector3DValueSerializer.cs
- XmlObjectSerializerReadContext.cs
- DockAndAnchorLayout.cs
- ConsumerConnectionPointCollection.cs
- EntryIndex.cs
- UnsafeCollabNativeMethods.cs
- RsaKeyIdentifierClause.cs
- QueryParameter.cs
- StateWorkerRequest.cs
- Variant.cs
- XPathBinder.cs
- AttachmentCollection.cs
- SkinBuilder.cs
- BitStack.cs
- ConnectorEditor.cs
- XmlQueryStaticData.cs
- RequestQueryParser.cs