Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1 / RemotingException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: RemotingException ** ** ** Purpose: Exception class for remoting ** ** =============================================================================*/ namespace System.Runtime.Remoting { using System.Runtime.Remoting; using System; using System.Runtime.Serialization; // The Exception thrown when something has gone // wrong during remoting // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } protected RemotingException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // The Exception thrown when something has gone // wrong on the server during remoting. This exception is thrown // on the client. // [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class ServerException : SystemException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new ServerException with its message // string set to a default message. public ServerException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SERVER); } public ServerException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_SERVER); } internal ServerException(SerializationInfo info, StreamingContext context) : base(info, context) {} } [Serializable()] [System.Runtime.InteropServices.ComVisible(true)] public class RemotingTimeoutException : RemotingException { private static String _nullMessage = Environment.GetResourceString("Remoting_Default"); // Creates a new RemotingException with its message // string set to a default message. public RemotingTimeoutException() : base(_nullMessage) { } public RemotingTimeoutException(String message) : base(message) { SetErrorCode(__HResults.COR_E_REMOTING); } public RemotingTimeoutException(String message, Exception InnerException) : base(message, InnerException) { SetErrorCode(__HResults.COR_E_REMOTING); } internal RemotingTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) {} } // RemotingTimeoutException }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityCollection.cs
- SelectionManager.cs
- BasicKeyConstraint.cs
- MappedMetaModel.cs
- ObjectQueryExecutionPlan.cs
- BitmapFrameEncode.cs
- QuaternionAnimation.cs
- DeferredReference.cs
- Int32Animation.cs
- ColorAnimation.cs
- MessagePartProtectionMode.cs
- ApplicationException.cs
- PanelStyle.cs
- CookielessData.cs
- TraceRecord.cs
- _AutoWebProxyScriptHelper.cs
- XamlPathDataSerializer.cs
- GPPOINT.cs
- ListParaClient.cs
- Knowncolors.cs
- HasActivatableWorkflowEvent.cs
- EdmMember.cs
- ApplicationSettingsBase.cs
- DBPropSet.cs
- WebConfigurationFileMap.cs
- AccessDataSource.cs
- MD5.cs
- ClockController.cs
- WebPartManagerInternals.cs
- XmlQualifiedNameTest.cs
- TextTreeObjectNode.cs
- Polyline.cs
- Accessible.cs
- Utils.cs
- ColorEditor.cs
- KeyInstance.cs
- CopyNamespacesAction.cs
- UInt16.cs
- LinearQuaternionKeyFrame.cs
- CompareValidator.cs
- hresults.cs
- AccessDataSourceView.cs
- StackBuilderSink.cs
- EventBuilder.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- HMAC.cs
- HttpGetClientProtocol.cs
- EventPropertyMap.cs
- WindowsScroll.cs
- NativeBuffer.cs
- LateBoundBitmapDecoder.cs
- CssClassPropertyAttribute.cs
- CapabilitiesAssignment.cs
- FixedPageProcessor.cs
- COM2PropertyPageUITypeConverter.cs
- InlineCategoriesDocument.cs
- NopReturnReader.cs
- AccessViolationException.cs
- ClassHandlersStore.cs
- WebReferencesBuildProvider.cs
- metadatamappinghashervisitor.cs
- ComplexPropertyEntry.cs
- WindowProviderWrapper.cs
- CategoryEditor.cs
- XmlText.cs
- TagMapInfo.cs
- PartialToken.cs
- EventArgs.cs
- Identifier.cs
- OneWayElement.cs
- WindowsListViewSubItem.cs
- DesignerVerb.cs
- SqlCacheDependencyDatabase.cs
- XmlSchemaChoice.cs
- XmlNode.cs
- CriticalExceptions.cs
- XmlSchemaAttributeGroupRef.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TrackingServices.cs
- XamlTemplateSerializer.cs
- FileDataSourceCache.cs
- OrderingExpression.cs
- ItemCheckEvent.cs
- InstancePersistenceCommand.cs
- TransformCollection.cs
- JsonFormatReaderGenerator.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- OutputCache.cs
- SurrogateSelector.cs
- SqlTypesSchemaImporter.cs
- SynchronizedInputAdaptor.cs
- UITypeEditors.cs
- StylusShape.cs
- TimeSpanValidatorAttribute.cs
- ShapingWorkspace.cs
- NotImplementedException.cs
- __TransparentProxy.cs
- Rotation3DKeyFrameCollection.cs
- SQLGuid.cs
- DataSourceControlBuilder.cs