Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EmptyQuery.cs
- PackagePart.cs
- SchemaInfo.cs
- IisTraceListener.cs
- ModuleElement.cs
- DynamicUpdateCommand.cs
- OdbcReferenceCollection.cs
- RuleAttributes.cs
- Freezable.cs
- XmlMembersMapping.cs
- Random.cs
- Model3D.cs
- ToolStripEditorManager.cs
- SmiMetaDataProperty.cs
- FlowDocumentReader.cs
- WizardStepBase.cs
- mactripleDES.cs
- AffineTransform3D.cs
- GeneralTransform3D.cs
- AuthenticationSection.cs
- Point3DCollection.cs
- CheckBox.cs
- StylusDevice.cs
- ClientConfigurationHost.cs
- OletxEnlistment.cs
- TableRowGroup.cs
- ImageUrlEditor.cs
- ParallelActivityDesigner.cs
- TextRunCache.cs
- Memoizer.cs
- IndexOutOfRangeException.cs
- URIFormatException.cs
- GroupBox.cs
- ObjectNavigationPropertyMapping.cs
- ValueHandle.cs
- EncryptedKey.cs
- RegexGroup.cs
- DataGridItemCollection.cs
- HandlerFactoryCache.cs
- VariantWrapper.cs
- HtmlEncodedRawTextWriter.cs
- Int32KeyFrameCollection.cs
- Scheduler.cs
- CancellableEnumerable.cs
- BoundsDrawingContextWalker.cs
- SelfIssuedAuthRSACryptoProvider.cs
- TextUtf8RawTextWriter.cs
- EventlogProvider.cs
- TemplateParser.cs
- SizeAnimationClockResource.cs
- UndoEngine.cs
- UrlAuthorizationModule.cs
- DateTimeOffsetStorage.cs
- EventRouteFactory.cs
- IISUnsafeMethods.cs
- Soap.cs
- TemplatePropertyEntry.cs
- CorrelationTokenTypeConvertor.cs
- SupportingTokenProviderSpecification.cs
- Model3D.cs
- SplitterCancelEvent.cs
- ImageDrawing.cs
- AvtEvent.cs
- WebPartConnectionCollection.cs
- BeginStoryboard.cs
- TerminateDesigner.cs
- Viewport3DAutomationPeer.cs
- QueryResponse.cs
- WorkflowServiceNamespace.cs
- CheckBoxPopupAdapter.cs
- RefType.cs
- TextContainerChangeEventArgs.cs
- FrameworkRichTextComposition.cs
- DispatcherSynchronizationContext.cs
- ContentPlaceHolder.cs
- ObjectItemNoOpAssemblyLoader.cs
- RelatedView.cs
- SQLDecimal.cs
- TextChange.cs
- _emptywebproxy.cs
- RunInstallerAttribute.cs
- UrlEncodedParameterWriter.cs
- ConstantCheck.cs
- ResourceExpressionBuilder.cs
- HtmlShim.cs
- FileDialogPermission.cs
- RelatedView.cs
- TableColumn.cs
- TextTreeExtractElementUndoUnit.cs
- SqlMethods.cs
- RunWorkerCompletedEventArgs.cs
- XmlDocumentSerializer.cs
- WebPartConnection.cs
- assertwrapper.cs
- DES.cs
- DisplayInformation.cs
- OLEDB_Enum.cs
- ItemsControlAutomationPeer.cs
- Image.cs
- IDQuery.cs