Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SizeAnimation.cs
- QueryCursorEventArgs.cs
- BaseAsyncResult.cs
- ListViewTableRow.cs
- XMLSyntaxException.cs
- ConfigPathUtility.cs
- StructuredTypeEmitter.cs
- BasePattern.cs
- LinkedDataMemberFieldEditor.cs
- CSharpCodeProvider.cs
- HuffCodec.cs
- BatchWriter.cs
- SchemaManager.cs
- HtmlImage.cs
- Point4D.cs
- ExpressionBinding.cs
- DbTransaction.cs
- WebReference.cs
- ControlParameter.cs
- DateBoldEvent.cs
- ActionFrame.cs
- CodeCatchClause.cs
- RuntimeHelpers.cs
- AssemblyAttributes.cs
- Cloud.cs
- PathGradientBrush.cs
- OpenTypeLayoutCache.cs
- DeploymentSection.cs
- ApplicationBuildProvider.cs
- RNGCryptoServiceProvider.cs
- Grammar.cs
- TagPrefixCollection.cs
- ButtonChrome.cs
- SecurityHelper.cs
- BamlCollectionHolder.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- ExecutionScope.cs
- QueryRewriter.cs
- CacheDependency.cs
- CodeConditionStatement.cs
- Brush.cs
- RegistryConfigurationProvider.cs
- ComponentEvent.cs
- EventDriven.cs
- DataSourceExpression.cs
- DateTimePicker.cs
- RecordBuilder.cs
- BitmapCodecInfoInternal.cs
- WebPartConnectionsDisconnectVerb.cs
- JoinGraph.cs
- OutputCacheProviderCollection.cs
- TableLayoutRowStyleCollection.cs
- NTAccount.cs
- ReverseInheritProperty.cs
- GlyphsSerializer.cs
- OracleColumn.cs
- TemplatedEditableDesignerRegion.cs
- LinkClickEvent.cs
- MenuItemBindingCollection.cs
- MessagePropertyFilter.cs
- UnsafeCollabNativeMethods.cs
- SemanticResolver.cs
- BitmapEffectOutputConnector.cs
- RegistrySecurity.cs
- ColorConverter.cs
- GridViewCommandEventArgs.cs
- EntityCommandCompilationException.cs
- NativeMethods.cs
- DataGridViewRowsAddedEventArgs.cs
- HyperLinkStyle.cs
- Pens.cs
- DataObjectPastingEventArgs.cs
- StringKeyFrameCollection.cs
- EncryptedData.cs
- GregorianCalendarHelper.cs
- DataServices.cs
- ScrollData.cs
- ConnectionDemuxer.cs
- StatusBar.cs
- LingerOption.cs
- LambdaCompiler.Expressions.cs
- DataBinding.cs
- PasswordBox.cs
- LineServicesCallbacks.cs
- Point.cs
- ReferenceConverter.cs
- NoneExcludedImageIndexConverter.cs
- MenuTracker.cs
- RoleGroupCollection.cs
- BrushConverter.cs
- ClientRuntimeConfig.cs
- ZeroOpNode.cs
- JoinGraph.cs
- RawStylusSystemGestureInputReport.cs
- Expression.cs
- SchemaImporterExtensionElement.cs
- ArgumentNullException.cs
- CollectionDataContract.cs
- TypeGeneratedEventArgs.cs
- RuleSettings.cs