Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Double.cs
- MarshalDirectiveException.cs
- SystemResourceHost.cs
- ObjectDataSourceView.cs
- Point3DCollection.cs
- TextRange.cs
- XPathNodeInfoAtom.cs
- GenericAuthenticationEventArgs.cs
- Font.cs
- ImageAttributes.cs
- BuildProvidersCompiler.cs
- ResolvePPIDRequest.cs
- InteropBitmapSource.cs
- RegistryExceptionHelper.cs
- TrailingSpaceComparer.cs
- DeferredElementTreeState.cs
- ServiceAuthorizationElement.cs
- CompilerInfo.cs
- XmlSchemas.cs
- StylusEventArgs.cs
- ScriptManagerProxy.cs
- XmlLanguageConverter.cs
- SetIterators.cs
- TextElementEnumerator.cs
- Matrix.cs
- InlineUIContainer.cs
- DataListItemEventArgs.cs
- Int32RectConverter.cs
- AsyncResult.cs
- PathGeometry.cs
- ComponentDispatcher.cs
- MetadataSource.cs
- HelpProvider.cs
- EntityDataSourceConfigureObjectContext.cs
- ExpressionPrinter.cs
- CmsInterop.cs
- ButtonBaseAutomationPeer.cs
- SoapAttributeOverrides.cs
- FlowDocumentReader.cs
- LocalValueEnumerator.cs
- FontFamilyIdentifier.cs
- MeshGeometry3D.cs
- CollectionBase.cs
- IntSecurity.cs
- HttpDebugHandler.cs
- CriticalHandle.cs
- ListViewGroupCollectionEditor.cs
- HttpHandlersSection.cs
- IndexExpression.cs
- XDRSchema.cs
- EditorBrowsableAttribute.cs
- ParserContext.cs
- ConsoleKeyInfo.cs
- RowToFieldTransformer.cs
- ActivityDesignerHelper.cs
- ParsedAttributeCollection.cs
- PasswordPropertyTextAttribute.cs
- SamlSecurityToken.cs
- FontFaceLayoutInfo.cs
- CompilationUnit.cs
- StrongNameMembershipCondition.cs
- ProfileProvider.cs
- DataViewSetting.cs
- CompressStream.cs
- TreeNodeBindingCollection.cs
- TableLayoutSettings.cs
- CodeSnippetExpression.cs
- DataColumnChangeEvent.cs
- GuidConverter.cs
- TypeDescriptionProviderAttribute.cs
- Cursor.cs
- ExeContext.cs
- PropertyChangeTracker.cs
- DeleteBookmarkScope.cs
- ListViewItemEventArgs.cs
- BindingContext.cs
- SerializationFieldInfo.cs
- DataGridColumnFloatingHeader.cs
- WebPartConnectionsConnectVerb.cs
- SqlCommand.cs
- BooleanSwitch.cs
- DrawingImage.cs
- PLINQETWProvider.cs
- XmlComplianceUtil.cs
- IdleTimeoutMonitor.cs
- DragDropHelper.cs
- OdbcErrorCollection.cs
- PartialArray.cs
- ListBoxItemWrapperAutomationPeer.cs
- ImageSourceConverter.cs
- DateBoldEvent.cs
- ValidationErrorCollection.cs
- MemberProjectedSlot.cs
- CompositeScriptReferenceEventArgs.cs
- SqlConnection.cs
- TextTreeDeleteContentUndoUnit.cs
- RectangleF.cs
- RightsManagementEncryptedStream.cs
- DispatcherHooks.cs
- FileDialog.cs