Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SQLString.cs
- EventHandlerList.cs
- CodePropertyReferenceExpression.cs
- RelatedView.cs
- StructuredTypeEmitter.cs
- RegexFCD.cs
- UpdatePanelControlTrigger.cs
- Merger.cs
- webeventbuffer.cs
- Dictionary.cs
- ApplicationId.cs
- Compensate.cs
- ContentFilePart.cs
- DataControlButton.cs
- NullableDoubleSumAggregationOperator.cs
- MailAddressCollection.cs
- ClientRoleProvider.cs
- DbMetaDataColumnNames.cs
- OracleBinary.cs
- Properties.cs
- CurrencyManager.cs
- XmlTextReaderImplHelpers.cs
- ResourceReferenceExpressionConverter.cs
- COM2IProvidePropertyBuilderHandler.cs
- XmlWhitespace.cs
- BindingList.cs
- HttpVersion.cs
- PanelStyle.cs
- coordinatorfactory.cs
- MouseEvent.cs
- DataViewSettingCollection.cs
- TdsRecordBufferSetter.cs
- ConfigXmlText.cs
- DisableDpiAwarenessAttribute.cs
- SerializerWriterEventHandlers.cs
- DataMemberListEditor.cs
- VersionUtil.cs
- Point4DConverter.cs
- ComponentEditorPage.cs
- WindowsListViewGroup.cs
- DrawingAttributes.cs
- XmlSerializationGeneratedCode.cs
- ImageInfo.cs
- ZipIOModeEnforcingStream.cs
- PeerContact.cs
- FrameworkPropertyMetadata.cs
- Debugger.cs
- ByteStreamGeometryContext.cs
- Lasso.cs
- TreeView.cs
- EntityDataSourceSelectedEventArgs.cs
- DecoderExceptionFallback.cs
- SizeConverter.cs
- MDIClient.cs
- TCPListener.cs
- OdbcPermission.cs
- ModelTreeManager.cs
- HtmlElementErrorEventArgs.cs
- DrawToolTipEventArgs.cs
- CriticalFinalizerObject.cs
- URIFormatException.cs
- DefaultAutoFieldGenerator.cs
- HwndHost.cs
- EntitySqlQueryCacheKey.cs
- AccessDataSourceView.cs
- AspProxy.cs
- XmlSchemaAttribute.cs
- ClaimTypeElement.cs
- WebPartVerb.cs
- NetworkInformationPermission.cs
- GrowingArray.cs
- GlyphTypeface.cs
- EventPrivateKey.cs
- SspiSecurityTokenProvider.cs
- TemplateContentLoader.cs
- XmlDataCollection.cs
- MD5.cs
- ClientSponsor.cs
- AccessorTable.cs
- SystemColorTracker.cs
- FileSecurity.cs
- SpecialNameAttribute.cs
- XmlLanguage.cs
- RegexRunner.cs
- TargetConverter.cs
- sqlmetadatafactory.cs
- HierarchicalDataBoundControl.cs
- UserPreferenceChangingEventArgs.cs
- UnsafeNativeMethods.cs
- DrawingAttributes.cs
- ThreadInterruptedException.cs
- EmptyEnumerable.cs
- rsa.cs
- ConfigurationSectionGroup.cs
- XmlSchemaImport.cs
- IndexedString.cs
- SendMailErrorEventArgs.cs
- SystemInfo.cs
- ReservationNotFoundException.cs
- ServiceSettingsResponseInfo.cs