Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RoutedEventConverter.cs
- ProfileSettings.cs
- TraceListener.cs
- DesignerLoader.cs
- PageCodeDomTreeGenerator.cs
- ButtonField.cs
- ModuleElement.cs
- Module.cs
- TextEndOfSegment.cs
- LinkConverter.cs
- TlsnegoTokenAuthenticator.cs
- LoginView.cs
- OdbcCommand.cs
- ExpiredSecurityTokenException.cs
- InvalidDataException.cs
- FieldNameLookup.cs
- TemplateContentLoader.cs
- AncestorChangedEventArgs.cs
- WindowsRichEdit.cs
- ClientEventManager.cs
- EpmContentDeSerializer.cs
- WebEventTraceProvider.cs
- TableCellsCollectionEditor.cs
- CodeCompileUnit.cs
- PeerContact.cs
- ImageBrush.cs
- SchemaImporterExtension.cs
- PageAdapter.cs
- PointAnimation.cs
- TextChange.cs
- WpfKnownTypeInvoker.cs
- SqlConnectionPoolProviderInfo.cs
- SafeHandles.cs
- XmlBinaryReader.cs
- SystemUnicastIPAddressInformation.cs
- WorkflowStateRollbackService.cs
- DataGridViewCellValueEventArgs.cs
- BinaryObjectInfo.cs
- QueuedDeliveryRequirementsMode.cs
- OdbcConnectionOpen.cs
- AsymmetricSignatureFormatter.cs
- IndexedString.cs
- EventBookmark.cs
- Timeline.cs
- SchemaElementLookUpTableEnumerator.cs
- Page.cs
- ContextProperty.cs
- MessageSmuggler.cs
- DataKey.cs
- ObjectTag.cs
- PackagingUtilities.cs
- AccessControlEntry.cs
- CacheRequest.cs
- ListItemParagraph.cs
- ObjectViewListener.cs
- WeakReferenceEnumerator.cs
- DoubleCollection.cs
- PlatformCulture.cs
- EntityDataSourceReferenceGroup.cs
- configsystem.cs
- FacetEnabledSchemaElement.cs
- ColorContext.cs
- RotateTransform.cs
- WebConfigurationHost.cs
- OleDbTransaction.cs
- MissingSatelliteAssemblyException.cs
- CharacterBuffer.cs
- ObjectItemNoOpAssemblyLoader.cs
- PublisherMembershipCondition.cs
- DriveNotFoundException.cs
- TypeExtension.cs
- UIElement.cs
- ResourceProviderFactory.cs
- HMACRIPEMD160.cs
- ValueOfAction.cs
- Comparer.cs
- InputScope.cs
- ObjectHelper.cs
- XmlSchemaType.cs
- TcpChannelHelper.cs
- CommonDialog.cs
- PseudoWebRequest.cs
- DoubleConverter.cs
- Funcletizer.cs
- WebPartManagerInternals.cs
- DrawingState.cs
- SqlTransaction.cs
- ListenerElementsCollection.cs
- PageContentAsyncResult.cs
- DataViewSetting.cs
- CodeTypeDeclaration.cs
- TextWriterTraceListener.cs
- HttpWebRequest.cs
- EditorBrowsableAttribute.cs
- ChannelTokenTypeConverter.cs
- CodeCompiler.cs
- DebugInfo.cs
- NavigationProperty.cs
- TableLayoutPanelCellPosition.cs
- FunctionDescription.cs