Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomErrorCollection.cs
- FormViewInsertedEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- FindCompletedEventArgs.cs
- IpcChannelHelper.cs
- CatchBlock.cs
- SiteMapNode.cs
- TableLayoutPanelBehavior.cs
- HostingEnvironmentSection.cs
- HttpVersion.cs
- ExpressionBuilder.cs
- SafeCryptHandles.cs
- MergablePropertyAttribute.cs
- HeaderedContentControl.cs
- ConfigurationManagerInternalFactory.cs
- ChildTable.cs
- PrincipalPermissionMode.cs
- ToolStripSettings.cs
- ByteStreamMessageEncoderFactory.cs
- MetadataUtil.cs
- odbcmetadatacolumnnames.cs
- DataColumnMapping.cs
- TargetConverter.cs
- TraceHandlerErrorFormatter.cs
- GridViewSelectEventArgs.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- OutputCacheProviderCollection.cs
- XhtmlCssHandler.cs
- CompressedStack.cs
- GeometryGroup.cs
- FileVersionInfo.cs
- DocumentViewerHelper.cs
- XPathEmptyIterator.cs
- FormatException.cs
- ClientRuntimeConfig.cs
- ProxyHelper.cs
- ComponentResourceKeyConverter.cs
- HotCommands.cs
- embossbitmapeffect.cs
- DbConnectionPoolCounters.cs
- QilVisitor.cs
- ComboBox.cs
- FrameworkTextComposition.cs
- ProxyGenerationError.cs
- PropertyTabChangedEvent.cs
- InertiaTranslationBehavior.cs
- SqlInternalConnection.cs
- RuleSettings.cs
- WebPartPersonalization.cs
- FontConverter.cs
- SHA1CryptoServiceProvider.cs
- Version.cs
- TextAdaptor.cs
- UserControl.cs
- DiagnosticTraceSchemas.cs
- Pair.cs
- InteropAutomationProvider.cs
- ControlBuilderAttribute.cs
- MemberInfoSerializationHolder.cs
- WindowProviderWrapper.cs
- WaitForChangedResult.cs
- ScopedKnownTypes.cs
- CharUnicodeInfo.cs
- FullTextBreakpoint.cs
- MenuStrip.cs
- CodeAttributeArgumentCollection.cs
- TdsParameterSetter.cs
- GACIdentityPermission.cs
- MemberHolder.cs
- ListenerElementsCollection.cs
- TextBoxBaseDesigner.cs
- OracleParameterCollection.cs
- DetailsViewPageEventArgs.cs
- ToolStripContainer.cs
- SharedUtils.cs
- InputManager.cs
- RegisteredScript.cs
- StringKeyFrameCollection.cs
- KeyInterop.cs
- BinHexEncoder.cs
- GestureRecognitionResult.cs
- regiisutil.cs
- WindowProviderWrapper.cs
- LinearGradientBrush.cs
- ValueTable.cs
- X509Extension.cs
- initElementDictionary.cs
- ApplicationInfo.cs
- GlobalEventManager.cs
- ThemeableAttribute.cs
- SystemIPInterfaceProperties.cs
- XmlTextWriter.cs
- ToolboxComponentsCreatedEventArgs.cs
- ListChangedEventArgs.cs
- RenderTargetBitmap.cs
- InsufficientMemoryException.cs
- HttpException.cs
- AnnotationMap.cs
- WindowAutomationPeer.cs
- DynamicObjectAccessor.cs