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
- PropertyStore.cs
- InheritanceAttribute.cs
- ContainerSelectorBehavior.cs
- ObjectDataSourceDisposingEventArgs.cs
- SuppressedPackageProperties.cs
- DataGridViewRowEventArgs.cs
- PropertyValueUIItem.cs
- AttachedAnnotation.cs
- UInt16Storage.cs
- DataGridViewCellMouseEventArgs.cs
- DataGridRowHeader.cs
- DirectionalLight.cs
- VerticalAlignConverter.cs
- XmlDocumentType.cs
- BaseParaClient.cs
- ReliabilityContractAttribute.cs
- MimeFormImporter.cs
- RegistrationServices.cs
- URLString.cs
- _NegoState.cs
- SQLRoleProvider.cs
- DataError.cs
- EventWaitHandleSecurity.cs
- CacheMode.cs
- MachineSettingsSection.cs
- AsymmetricSignatureFormatter.cs
- DrawingImage.cs
- WebErrorHandler.cs
- ObjectQueryExecutionPlan.cs
- DbConnectionStringCommon.cs
- SiteMapNodeItemEventArgs.cs
- ClientRuntimeConfig.cs
- UMPAttributes.cs
- Metadata.cs
- SineEase.cs
- GridViewRow.cs
- TypeLibConverter.cs
- WebEncodingValidator.cs
- FlatButtonAppearance.cs
- WithParamAction.cs
- WindowsStartMenu.cs
- Boolean.cs
- ThicknessConverter.cs
- InputGestureCollection.cs
- ToolStripDropDownItem.cs
- RawContentTypeMapper.cs
- DataTableTypeConverter.cs
- WebContentFormatHelper.cs
- PropertyManager.cs
- HttpClientChannel.cs
- StructureChangedEventArgs.cs
- DataGridColumnHeaderAutomationPeer.cs
- CultureNotFoundException.cs
- DesignerHierarchicalDataSourceView.cs
- ChtmlSelectionListAdapter.cs
- FileSecurity.cs
- CodeIdentifiers.cs
- ProtocolsConfigurationHandler.cs
- sqlser.cs
- File.cs
- DoWorkEventArgs.cs
- SecurityResources.cs
- ToolStripItemEventArgs.cs
- VoiceSynthesis.cs
- AttachInfo.cs
- TraceHandlerErrorFormatter.cs
- UnauthorizedWebPart.cs
- ProfileGroupSettingsCollection.cs
- QueryStringHandler.cs
- ControlTemplate.cs
- RoleGroup.cs
- StoreItemCollection.Loader.cs
- BinaryCommonClasses.cs
- ControlValuePropertyAttribute.cs
- AssociationSetMetadata.cs
- Panel.cs
- MaterialGroup.cs
- CodeDomSerializerBase.cs
- ServiceDeploymentInfo.cs
- PrefixHandle.cs
- TaskFileService.cs
- ImplicitInputBrush.cs
- AsymmetricKeyExchangeFormatter.cs
- Hex.cs
- Shape.cs
- HtmlLink.cs
- WebBrowserNavigatedEventHandler.cs
- SoapDocumentMethodAttribute.cs
- D3DImage.cs
- followingsibling.cs
- ProtocolsSection.cs
- LabelTarget.cs
- _BasicClient.cs
- TextReader.cs
- RegexInterpreter.cs
- Function.cs
- WaitForChangedResult.cs
- RequestTimeoutManager.cs
- AddInBase.cs
- DataGridViewImageColumn.cs