Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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 } // 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
- Vector3DCollection.cs
- ImageFormatConverter.cs
- StylusButtonEventArgs.cs
- Buffer.cs
- StylusTip.cs
- XPathException.cs
- StringStorage.cs
- MessagePartSpecification.cs
- SystemPens.cs
- TextTreeExtractElementUndoUnit.cs
- __Filters.cs
- METAHEADER.cs
- CodeDOMProvider.cs
- TextDecorationCollection.cs
- TableProviderWrapper.cs
- WebPageTraceListener.cs
- ExpressionNormalizer.cs
- ReachUIElementCollectionSerializerAsync.cs
- EntityReference.cs
- MarshalByRefObject.cs
- StylusOverProperty.cs
- PointConverter.cs
- SystemIPAddressInformation.cs
- WebPartConnectionsEventArgs.cs
- TypeUsageBuilder.cs
- BezierSegment.cs
- DynamicRendererThreadManager.cs
- DbMetaDataColumnNames.cs
- CursorEditor.cs
- CroppedBitmap.cs
- DetailsViewPageEventArgs.cs
- DataControlPagerLinkButton.cs
- RoleGroupCollection.cs
- RegexWorker.cs
- CompensationDesigner.cs
- ServicePointManager.cs
- ComponentResourceKeyConverter.cs
- RoleService.cs
- XmlEnumAttribute.cs
- SystemInformation.cs
- WorkflowMarkupElementEventArgs.cs
- DelayDesigner.cs
- TextReader.cs
- HyperLink.cs
- IsolatedStoragePermission.cs
- DataRowView.cs
- RightsManagementEncryptedStream.cs
- XmlDictionaryReaderQuotasElement.cs
- NTAccount.cs
- TileModeValidation.cs
- CommonDialog.cs
- HttpCacheVary.cs
- GeneratedView.cs
- SpellCheck.cs
- NavigationProperty.cs
- DataSourceSerializationException.cs
- Int32CollectionValueSerializer.cs
- PasswordTextContainer.cs
- XmlName.cs
- PassportAuthentication.cs
- EventMetadata.cs
- TextFormatter.cs
- WebEventCodes.cs
- GlyphRunDrawing.cs
- Point4D.cs
- SqlInfoMessageEvent.cs
- CollectionChangeEventArgs.cs
- HttpRequestCacheValidator.cs
- ToolStripRenderer.cs
- WindowsEditBox.cs
- DataColumnMapping.cs
- TypeDependencyAttribute.cs
- InheritanceContextHelper.cs
- ProjectionRewriter.cs
- TextBox.cs
- ReadOnlyObservableCollection.cs
- VersionedStream.cs
- ArrangedElement.cs
- EnumConverter.cs
- StandardCommandToolStripMenuItem.cs
- CreateInstanceBinder.cs
- EdmComplexPropertyAttribute.cs
- BaseValidator.cs
- ConsoleEntryPoint.cs
- ArcSegment.cs
- CategoryGridEntry.cs
- PipelineModuleStepContainer.cs
- ConfigXmlAttribute.cs
- ContentFilePart.cs
- EmptyControlCollection.cs
- XsltFunctions.cs
- XmlComment.cs
- SortFieldComparer.cs
- DependencyPropertyKind.cs
- InternalRelationshipCollection.cs
- List.cs
- HttpConfigurationSystem.cs
- Debug.cs
- ImpersonationContext.cs
- WebReferencesBuildProvider.cs