Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SecuritySessionSecurityTokenAuthenticator.cs
- CompilerInfo.cs
- ActivityCodeGenerator.cs
- SoapIncludeAttribute.cs
- HttpPostedFileBase.cs
- TextFormatterContext.cs
- RefreshPropertiesAttribute.cs
- FunctionUpdateCommand.cs
- DeploymentSectionCache.cs
- Error.cs
- ISAPIWorkerRequest.cs
- XmlSecureResolver.cs
- TableProvider.cs
- Hex.cs
- serverconfig.cs
- PtsPage.cs
- XmlSchemaType.cs
- BindingWorker.cs
- ConfigXmlAttribute.cs
- SourceElementsCollection.cs
- DataColumnCollection.cs
- AttachmentService.cs
- NativeMethods.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ComPlusTypeValidator.cs
- DPTypeDescriptorContext.cs
- DBSqlParserTable.cs
- Bezier.cs
- PngBitmapDecoder.cs
- WebBrowserBase.cs
- ResourceSetExpression.cs
- RawKeyboardInputReport.cs
- BamlWriter.cs
- DelegatedStream.cs
- BitmapCodecInfoInternal.cs
- TablePattern.cs
- DataGridLinkButton.cs
- DateTimeOffsetStorage.cs
- FormParameter.cs
- Odbc32.cs
- SimpleNameService.cs
- GenericIdentity.cs
- WindowsSecurityToken.cs
- AnimationException.cs
- PageCodeDomTreeGenerator.cs
- UInt32Storage.cs
- EntityDataSourceStatementEditor.cs
- PinnedBufferMemoryStream.cs
- SoapMessage.cs
- PageTheme.cs
- HttpListenerPrefixCollection.cs
- DataGridViewUtilities.cs
- GeneralTransform.cs
- TemplatedWizardStep.cs
- WindowsScrollBarBits.cs
- LifetimeServices.cs
- SequentialUshortCollection.cs
- InstallerTypeAttribute.cs
- MimeTextImporter.cs
- RsaSecurityToken.cs
- ReferenceConverter.cs
- VectorCollection.cs
- FileDialog.cs
- CloseSequence.cs
- RegexMatch.cs
- MissingMethodException.cs
- TriggerBase.cs
- SoapSchemaExporter.cs
- RedirectionProxy.cs
- SourceFilter.cs
- SqlServer2KCompatibilityCheck.cs
- GeneralTransformGroup.cs
- DataObjectCopyingEventArgs.cs
- TextEncodedRawTextWriter.cs
- FilteredAttributeCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- MenuTracker.cs
- ListenerSessionConnectionReader.cs
- SymmetricSecurityBindingElement.cs
- WebPartConnectionsConfigureVerb.cs
- EdmToObjectNamespaceMap.cs
- DataGridTextBoxColumn.cs
- WorkingDirectoryEditor.cs
- ClientSettings.cs
- dataobject.cs
- NullableDecimalMinMaxAggregationOperator.cs
- controlskin.cs
- UnsafeNativeMethodsCLR.cs
- WS2007HttpBinding.cs
- CompilationUtil.cs
- PngBitmapDecoder.cs
- WebPartEditorApplyVerb.cs
- RepeaterDesigner.cs
- IdleTimeoutMonitor.cs
- ErrorFormatter.cs
- RelationshipConstraintValidator.cs
- RightsManagementInformation.cs
- InternalControlCollection.cs
- ConfigurationSectionGroup.cs
- WindowsFormsDesignerOptionService.cs