Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SharedUtils.cs
- SafeCryptoHandles.cs
- EventLogger.cs
- Error.cs
- FacetValues.cs
- NameValuePair.cs
- ConnectionInterfaceCollection.cs
- ArrangedElement.cs
- LayoutInformation.cs
- FixedMaxHeap.cs
- FixedSOMPage.cs
- TextTrailingCharacterEllipsis.cs
- CodeAttributeArgumentCollection.cs
- PictureBox.cs
- DataKey.cs
- SchemaElementDecl.cs
- FixedPosition.cs
- _AutoWebProxyScriptHelper.cs
- CompilerGlobalScopeAttribute.cs
- ProxyGenerator.cs
- AttributeExtensions.cs
- TypeSchema.cs
- DataServiceQueryProvider.cs
- ParseChildrenAsPropertiesAttribute.cs
- ConstantCheck.cs
- wgx_exports.cs
- SoapAttributeAttribute.cs
- FieldAccessException.cs
- System.Data_BID.cs
- Publisher.cs
- EtwTrace.cs
- ExternalCalls.cs
- EntitySetBase.cs
- ContextMenuStrip.cs
- SignedXml.cs
- CodeCatchClauseCollection.cs
- SqlInternalConnectionSmi.cs
- CoTaskMemHandle.cs
- BitmapVisualManager.cs
- XmlValidatingReaderImpl.cs
- OleDbFactory.cs
- ShutDownListener.cs
- PasswordBoxAutomationPeer.cs
- StringSource.cs
- CharConverter.cs
- DashStyles.cs
- CharAnimationUsingKeyFrames.cs
- TreeViewCancelEvent.cs
- RadioButton.cs
- DaylightTime.cs
- SequenceQuery.cs
- MappingException.cs
- BindingManagerDataErrorEventArgs.cs
- ContextMenu.cs
- odbcmetadatacollectionnames.cs
- HttpResponseMessageProperty.cs
- GregorianCalendarHelper.cs
- DataSourceComponent.cs
- CustomPeerResolverService.cs
- AudioBase.cs
- MappingModelBuildProvider.cs
- SHA512CryptoServiceProvider.cs
- CloseSequenceResponse.cs
- _TLSstream.cs
- CmsUtils.cs
- codemethodreferenceexpression.cs
- SendKeys.cs
- XmlSchemaAttributeGroupRef.cs
- ExpressionBuilder.cs
- OLEDB_Util.cs
- DynamicValidator.cs
- ManagedIStream.cs
- RegexCompiler.cs
- URLEditor.cs
- HtmlElementErrorEventArgs.cs
- PerformanceCounterCategory.cs
- BoundPropertyEntry.cs
- ScriptingRoleServiceSection.cs
- DeclaredTypeValidator.cs
- BitmapCacheBrush.cs
- Scheduler.cs
- BooleanToVisibilityConverter.cs
- ControlCodeDomSerializer.cs
- DependencyPropertyValueSerializer.cs
- AudioFileOut.cs
- EntityDataSourceDesigner.cs
- ViewStateException.cs
- ColumnTypeConverter.cs
- SqlProviderManifest.cs
- WindowsListViewGroup.cs
- XamlBrushSerializer.cs
- XmlHierarchicalDataSourceView.cs
- RtfNavigator.cs
- WinFormsSecurity.cs
- FragmentQueryProcessor.cs
- SrgsOneOf.cs
- ObjectQuery.cs
- TextTreeObjectNode.cs
- TextServicesHost.cs
- DrawingImage.cs