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
- DeviceFilterEditorDialog.cs
- SHA512Managed.cs
- Decimal.cs
- GenericAuthenticationEventArgs.cs
- XmlTextReaderImplHelpers.cs
- XmlSchemaSet.cs
- Brushes.cs
- StrongNamePublicKeyBlob.cs
- ClickablePoint.cs
- DeploymentSection.cs
- NativeMethodsCLR.cs
- DesignerValidationSummaryAdapter.cs
- XmlnsCache.cs
- TraceContextRecord.cs
- ValidationSummary.cs
- CodeSnippetTypeMember.cs
- CheckPair.cs
- DrawingContext.cs
- UnicodeEncoding.cs
- BitmapEncoder.cs
- PictureBox.cs
- WebPartsPersonalizationAuthorization.cs
- Brush.cs
- DesignerSerializationOptionsAttribute.cs
- SmiEventStream.cs
- unitconverter.cs
- WebServiceMethodData.cs
- HtmlForm.cs
- KeyValuePair.cs
- NullableDoubleMinMaxAggregationOperator.cs
- NativeActivity.cs
- DocumentPageViewAutomationPeer.cs
- TextRangeEditLists.cs
- DateBoldEvent.cs
- PointF.cs
- FlowLayoutSettings.cs
- CryptoStream.cs
- SharedStatics.cs
- CharacterMetrics.cs
- XPathAncestorQuery.cs
- PartManifestEntry.cs
- MonthChangedEventArgs.cs
- EntityDataSourceContextDisposingEventArgs.cs
- StorageModelBuildProvider.cs
- OleStrCAMarshaler.cs
- AggregateNode.cs
- ClonableStack.cs
- VerificationAttribute.cs
- TextReader.cs
- EdmComplexPropertyAttribute.cs
- Floater.cs
- OdbcConnectionOpen.cs
- UserNameSecurityToken.cs
- Material.cs
- ActivityCompletionCallbackWrapper.cs
- OciHandle.cs
- UnSafeCharBuffer.cs
- FileUtil.cs
- CommonRemoteMemoryBlock.cs
- HtmlImageAdapter.cs
- BulletedList.cs
- httpserverutility.cs
- FilteredXmlReader.cs
- KnownTypesHelper.cs
- SwitchElementsCollection.cs
- XPathCompileException.cs
- ProfileBuildProvider.cs
- SdlChannelSink.cs
- QueueException.cs
- BufferedGraphics.cs
- EntitySqlQueryCacheEntry.cs
- AlignmentYValidation.cs
- CodeTypeParameter.cs
- ResolveNameEventArgs.cs
- RequestContextBase.cs
- OrderByLifter.cs
- HostingMessageProperty.cs
- SmtpNetworkElement.cs
- Soap11ServerProtocol.cs
- DriveNotFoundException.cs
- DeploymentExceptionMapper.cs
- TabControlCancelEvent.cs
- PropertyNames.cs
- cookiecollection.cs
- UnauthorizedWebPart.cs
- DropTarget.cs
- EmptyEnumerable.cs
- MenuBase.cs
- ProjectionPruner.cs
- SchemaCollectionPreprocessor.cs
- PointHitTestResult.cs
- HostedHttpContext.cs
- UndirectedGraph.cs
- StoreContentChangedEventArgs.cs
- PolyBezierSegment.cs
- StrongNameKeyPair.cs
- CompiledIdentityConstraint.cs
- TransformCollection.cs
- Point3DCollectionValueSerializer.cs
- Accessible.cs