Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Util / ExceptionUtil.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TrailingSpaceComparer.cs
- CodeRemoveEventStatement.cs
- WebUtility.cs
- TextDecorationUnitValidation.cs
- RuntimeArgumentHandle.cs
- PathFigureCollectionValueSerializer.cs
- ConfigurationValidatorAttribute.cs
- ForeignConstraint.cs
- XmlRawWriterWrapper.cs
- XmlRawWriterWrapper.cs
- ComEventsInfo.cs
- BCLDebug.cs
- CellCreator.cs
- WinEventHandler.cs
- ByteAnimationBase.cs
- dtdvalidator.cs
- Visual3D.cs
- PointConverter.cs
- StylusLogic.cs
- HttpValueCollection.cs
- TagElement.cs
- SecurityContextSecurityTokenResolver.cs
- DragDrop.cs
- WindowShowOrOpenTracker.cs
- QueryPageSettingsEventArgs.cs
- DragEvent.cs
- DataBoundControlAdapter.cs
- AsyncPostBackTrigger.cs
- DataBinding.cs
- TextSpanModifier.cs
- AttributeData.cs
- FontFamily.cs
- ProfessionalColorTable.cs
- TraceContextRecord.cs
- AuthenticationSection.cs
- GroupDescription.cs
- DataGridColumn.cs
- TransformPattern.cs
- ObjectStateEntry.cs
- Rijndael.cs
- formatter.cs
- ListChunk.cs
- DispatcherExceptionFilterEventArgs.cs
- Stylus.cs
- HttpStreamXmlDictionaryReader.cs
- BitmapEffectGroup.cs
- CodeMemberField.cs
- OdbcConnectionOpen.cs
- StylusPlugInCollection.cs
- invalidudtexception.cs
- ObjectSecurity.cs
- WebServiceErrorEvent.cs
- SimpleBitVector32.cs
- SqlDataSourceCommandParser.cs
- ProviderConnectionPoint.cs
- SHA512.cs
- DataGridViewButtonColumn.cs
- StorageFunctionMapping.cs
- TreeNodeCollection.cs
- ViewManager.cs
- ClientOperation.cs
- TraceListener.cs
- LateBoundBitmapDecoder.cs
- HttpVersion.cs
- CacheOutputQuery.cs
- DataBindingCollection.cs
- GridViewEditEventArgs.cs
- LongValidatorAttribute.cs
- EntityCollection.cs
- CapabilitiesPattern.cs
- XmlComplianceUtil.cs
- EpmTargetPathSegment.cs
- TcpServerChannel.cs
- ObjectListDesigner.cs
- ServiceModelConfigurationSectionGroup.cs
- ApplicationProxyInternal.cs
- DockPattern.cs
- PersonalizationEntry.cs
- BulletChrome.cs
- DbMetaDataColumnNames.cs
- IInstanceContextProvider.cs
- AutoGeneratedFieldProperties.cs
- TableLayoutPanelCodeDomSerializer.cs
- PersonalizableTypeEntry.cs
- DataGridViewTopRowAccessibleObject.cs
- NumericExpr.cs
- FilterQuery.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- SqlUDTStorage.cs
- GroupItemAutomationPeer.cs
- ObjectDataSourceView.cs
- RecognitionResult.cs
- FixedStringLookup.cs
- MetadataCache.cs
- HashStream.cs
- TextParaClient.cs
- ComponentGlyph.cs
- FixedSOMTableRow.cs
- TemplateControlParser.cs
- XmlObjectSerializerContext.cs