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
- HttpStreams.cs
- ContentType.cs
- SqlUdtInfo.cs
- PathData.cs
- ParameterCollection.cs
- BaseValidator.cs
- IISMapPath.cs
- SchemaMapping.cs
- AppearanceEditorPart.cs
- TypeAccessException.cs
- CallId.cs
- DataGridItemEventArgs.cs
- DES.cs
- FeedUtils.cs
- BooleanStorage.cs
- TabItemWrapperAutomationPeer.cs
- AdPostCacheSubstitution.cs
- XPathException.cs
- InternalDuplexChannelFactory.cs
- X509Certificate.cs
- CodeTypeOfExpression.cs
- MILUtilities.cs
- HTTPNotFoundHandler.cs
- FullTextLine.cs
- NameValuePermission.cs
- DispatcherBuilder.cs
- AliasExpr.cs
- PnrpPermission.cs
- HyperLinkStyle.cs
- EntityClientCacheKey.cs
- NotSupportedException.cs
- TextDecorations.cs
- TreeNode.cs
- ScrollItemPattern.cs
- DbParameterCollectionHelper.cs
- UIElementParagraph.cs
- ObsoleteAttribute.cs
- TreeView.cs
- DataGridViewCellValueEventArgs.cs
- Registry.cs
- ReadingWritingEntityEventArgs.cs
- DropShadowBitmapEffect.cs
- LinkButton.cs
- IdentityNotMappedException.cs
- CodeMemberEvent.cs
- xsdvalidator.cs
- IfJoinedCondition.cs
- ProviderUtil.cs
- FixedSOMTable.cs
- GacUtil.cs
- StatusBarDrawItemEvent.cs
- MatrixAnimationUsingPath.cs
- MultipleCopiesCollection.cs
- SystemWebSectionGroup.cs
- SimpleModelProvider.cs
- SafeThreadHandle.cs
- RadioButtonRenderer.cs
- ContainerSelectorActiveEvent.cs
- ColorConvertedBitmapExtension.cs
- ToolStripManager.cs
- SchemaAttDef.cs
- IntegrationExceptionEventArgs.cs
- GPRECTF.cs
- GridEntryCollection.cs
- BamlCollectionHolder.cs
- DetailsViewRow.cs
- SqlCommandSet.cs
- SafeFileMappingHandle.cs
- RangeValidator.cs
- InputElement.cs
- BaseCAMarshaler.cs
- FixedSOMPageConstructor.cs
- isolationinterop.cs
- Oci.cs
- CultureInfo.cs
- TextDataBindingHandler.cs
- WebPartExportVerb.cs
- ChannelRequirements.cs
- arabicshape.cs
- ContextDataSourceView.cs
- CustomExpression.cs
- IssuanceLicense.cs
- PageCodeDomTreeGenerator.cs
- PermissionSetTriple.cs
- Message.cs
- ListControlDataBindingHandler.cs
- DownloadProgressEventArgs.cs
- TreeViewBindingsEditor.cs
- XsdSchemaFileEditor.cs
- ChangeTracker.cs
- PropertyToken.cs
- XmlDataImplementation.cs
- SchemaTypeEmitter.cs
- Point.cs
- HtmlInputCheckBox.cs
- TypeExtensions.cs
- BypassElement.cs
- MimeBasePart.cs
- BezierSegment.cs
- CryptoApi.cs