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
- NoClickablePointException.cs
- WebBrowsableAttribute.cs
- KeyNotFoundException.cs
- ManualResetEvent.cs
- ReflectionPermission.cs
- BackStopAuthenticationModule.cs
- XmlElement.cs
- Label.cs
- SecurityCriticalDataForSet.cs
- VectorCollectionConverter.cs
- TableRowCollection.cs
- Variant.cs
- DrawingContext.cs
- MediaTimeline.cs
- SqlParameter.cs
- DesignerAutoFormatStyle.cs
- DrawingContextWalker.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- CryptoHelper.cs
- DefaultValueConverter.cs
- DataGridViewTextBoxColumn.cs
- DependencyPropertyChangedEventArgs.cs
- Color.cs
- JsonQNameDataContract.cs
- Query.cs
- Validator.cs
- AuthenticationServiceManager.cs
- DecoderBestFitFallback.cs
- PageEventArgs.cs
- OleDbEnumerator.cs
- QilGeneratorEnv.cs
- ContractReference.cs
- MobileCapabilities.cs
- XmlAtomicValue.cs
- OpCodes.cs
- ConvertEvent.cs
- FormViewDeletedEventArgs.cs
- ExpressionParser.cs
- StoreItemCollection.cs
- NativeMethods.cs
- SelectionWordBreaker.cs
- JapaneseCalendar.cs
- WindowsFormsSynchronizationContext.cs
- ObjectListShowCommandsEventArgs.cs
- _HeaderInfo.cs
- MultiView.cs
- TrackingLocation.cs
- WebHeaderCollection.cs
- DataGridSortCommandEventArgs.cs
- SecurityTokenValidationException.cs
- X509InitiatorCertificateClientElement.cs
- WindowsListViewItemStartMenu.cs
- WorkflowServiceAttributesTypeConverter.cs
- DataRowComparer.cs
- DataGridViewColumnConverter.cs
- RSAPKCS1SignatureFormatter.cs
- PropertyGridView.cs
- ScriptMethodAttribute.cs
- CatalogPartChrome.cs
- SQLRoleProvider.cs
- DataGridViewRowEventArgs.cs
- LayoutDump.cs
- ServiceOperationViewControl.cs
- EndPoint.cs
- SqlDataSourceSelectingEventArgs.cs
- CompilerWrapper.cs
- ObjectAnimationUsingKeyFrames.cs
- PropertyKey.cs
- DesignBindingPicker.cs
- DetailsViewInsertedEventArgs.cs
- HttpCacheVary.cs
- ThrowHelper.cs
- ImageIndexConverter.cs
- TreeNodeStyleCollection.cs
- XmlDocumentFragment.cs
- TextBoxView.cs
- SBCSCodePageEncoding.cs
- MobileTemplatedControlDesigner.cs
- CalloutQueueItem.cs
- SafeMILHandle.cs
- InfoCardArgumentException.cs
- TextBoxBaseDesigner.cs
- Maps.cs
- PerformanceCounterPermission.cs
- ContextStaticAttribute.cs
- MimeReflector.cs
- basemetadatamappingvisitor.cs
- EnumConverter.cs
- WeakRefEnumerator.cs
- TextModifierScope.cs
- ValueSerializer.cs
- FileLoadException.cs
- LoginName.cs
- ColorConverter.cs
- SingleConverter.cs
- FixedSOMTextRun.cs
- IBuiltInEvidence.cs
- SqlResolver.cs
- ExeConfigurationFileMap.cs
- smtpconnection.cs