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
- DecoderFallbackWithFailureFlag.cs
- DependencySource.cs
- OdbcParameter.cs
- AdjustableArrowCap.cs
- ScrollViewerAutomationPeer.cs
- BufferAllocator.cs
- ExtensionElementCollection.cs
- Debugger.cs
- ChtmlPhoneCallAdapter.cs
- ClusterSafeNativeMethods.cs
- ParallelActivityDesigner.cs
- NativeActivityMetadata.cs
- ComplexTypeEmitter.cs
- CultureData.cs
- Activator.cs
- MediaElementAutomationPeer.cs
- ServerValidateEventArgs.cs
- SubstitutionList.cs
- DataGridViewLinkColumn.cs
- SmtpMail.cs
- SerializationFieldInfo.cs
- TaiwanLunisolarCalendar.cs
- __ConsoleStream.cs
- InsufficientMemoryException.cs
- __Filters.cs
- Int64KeyFrameCollection.cs
- ServiceOperationInvoker.cs
- DiscreteKeyFrames.cs
- TransformValueSerializer.cs
- Options.cs
- ToolStripDropDownButton.cs
- PropertiesTab.cs
- SecurityKeyIdentifierClause.cs
- InlineUIContainer.cs
- LinkedList.cs
- EntityDataSourceSelectingEventArgs.cs
- HttpContext.cs
- RepeaterItemEventArgs.cs
- TypeReference.cs
- WindowsListViewItemStartMenu.cs
- SkinBuilder.cs
- PathGeometry.cs
- FactoryMaker.cs
- COM2ExtendedBrowsingHandler.cs
- HwndSourceKeyboardInputSite.cs
- ColorConvertedBitmapExtension.cs
- TracingConnectionListener.cs
- DbConnectionPoolGroupProviderInfo.cs
- DesignerAdapterUtil.cs
- BrowserDefinitionCollection.cs
- SQLInt16Storage.cs
- CodeParameterDeclarationExpressionCollection.cs
- ConnectionStringsExpressionBuilder.cs
- ModelItemDictionary.cs
- SafeEventLogWriteHandle.cs
- DbParameterCollection.cs
- ReferenceSchema.cs
- TraceProvider.cs
- XmlAutoDetectWriter.cs
- MarshalDirectiveException.cs
- SelectionService.cs
- DispatcherTimer.cs
- LocalizabilityAttribute.cs
- SyntaxCheck.cs
- BindUriHelper.cs
- TcpServerChannel.cs
- BufferModeSettings.cs
- IPHostEntry.cs
- ScrollProviderWrapper.cs
- StatusBarItem.cs
- StringBlob.cs
- DiffuseMaterial.cs
- DataKeyArray.cs
- HelloOperationAsyncResult.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- TaskForm.cs
- Track.cs
- OleDbFactory.cs
- DelegateBodyWriter.cs
- SQLBytesStorage.cs
- ObjectDataSourceView.cs
- Soap12ProtocolImporter.cs
- DecimalStorage.cs
- MsmqHostedTransportManager.cs
- UpdatePanel.cs
- SolidColorBrush.cs
- HtmlGenericControl.cs
- SliderAutomationPeer.cs
- PageEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- AutomationPatternInfo.cs
- AccessDataSourceWizardForm.cs
- DateTimeStorage.cs
- _ProxyRegBlob.cs
- XmlWellformedWriter.cs
- MetadataItemEmitter.cs
- OrderedDictionary.cs
- ClientType.cs
- ChannelManagerHelpers.cs
- OleDbCommand.cs