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
- TextParagraphProperties.cs
- _HeaderInfoTable.cs
- InputScope.cs
- WorkflowInspectionServices.cs
- SecurityRuntime.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SimpleMailWebEventProvider.cs
- BitmapData.cs
- VirtualDirectoryMapping.cs
- ClientRoleProvider.cs
- ConnectorSelectionGlyph.cs
- Panel.cs
- ClientTargetSection.cs
- ExceptionUtil.cs
- DynamicAttribute.cs
- BasicBrowserDialog.cs
- FigureParagraph.cs
- UInt32.cs
- DbConnectionClosed.cs
- SiteIdentityPermission.cs
- Image.cs
- CommunicationObjectFaultedException.cs
- ViewKeyConstraint.cs
- QueryLifecycle.cs
- RowUpdatedEventArgs.cs
- WebSysDescriptionAttribute.cs
- WorkflowInstanceProxy.cs
- ListViewItem.cs
- RepeaterItemEventArgs.cs
- OrderedDictionaryStateHelper.cs
- ToolStripMenuItem.cs
- HttpFormatExtensions.cs
- InternalSafeNativeMethods.cs
- RadioButton.cs
- GroupItemAutomationPeer.cs
- ClientRoleProvider.cs
- ConfigurationElement.cs
- DataDesignUtil.cs
- File.cs
- ByteFacetDescriptionElement.cs
- Literal.cs
- WindowsSecurityTokenAuthenticator.cs
- XmlNamespaceMappingCollection.cs
- wmiprovider.cs
- MailBnfHelper.cs
- LogFlushAsyncResult.cs
- GridEntry.cs
- ObjectDataSourceView.cs
- TemplateXamlParser.cs
- PageCache.cs
- XPathAxisIterator.cs
- EntitySqlQueryCacheEntry.cs
- ExplicitDiscriminatorMap.cs
- Facet.cs
- TextEffect.cs
- XmlSignatureManifest.cs
- ReachDocumentReferenceSerializer.cs
- CanonicalFontFamilyReference.cs
- ColorTranslator.cs
- TokenBasedSetEnumerator.cs
- ParameterToken.cs
- SiteMembershipCondition.cs
- ComponentResourceManager.cs
- ProfileElement.cs
- Command.cs
- EmptyCollection.cs
- ReflectionPermission.cs
- EntityDataSourceChangingEventArgs.cs
- HttpUnhandledOperationInvoker.cs
- SchemaImporterExtension.cs
- LoadMessageLogger.cs
- ProvidePropertyAttribute.cs
- RelatedCurrencyManager.cs
- BulletedListEventArgs.cs
- TextOutput.cs
- MemberPath.cs
- ScriptResourceInfo.cs
- HwndPanningFeedback.cs
- ConfigurationManagerHelper.cs
- ReservationNotFoundException.cs
- RemotingSurrogateSelector.cs
- ScriptControlManager.cs
- ByteFacetDescriptionElement.cs
- SvcMapFileLoader.cs
- AccessedThroughPropertyAttribute.cs
- HandledMouseEvent.cs
- ExpandCollapsePattern.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- Line.cs
- BindingContext.cs
- AssemblyInfo.cs
- SoapSchemaExporter.cs
- DetailsViewPagerRow.cs
- StorageEntitySetMapping.cs
- Messages.cs
- WpfKnownTypeInvoker.cs
- EntityConnectionStringBuilder.cs
- CompoundFileDeflateTransform.cs
- loginstatus.cs
- FactorySettingsElement.cs