Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SafeNativeMethods.cs
- GPStream.cs
- XmlSchema.cs
- ListDictionaryInternal.cs
- MachineKeySection.cs
- AccessViolationException.cs
- HtmlHistory.cs
- ImportCatalogPart.cs
- ApplicationActivator.cs
- FixedDSBuilder.cs
- XhtmlBasicControlAdapter.cs
- SqlBooleanMismatchVisitor.cs
- ListMarkerSourceInfo.cs
- TabletDeviceInfo.cs
- XslAst.cs
- BinaryUtilClasses.cs
- XPathNavigatorKeyComparer.cs
- NameValuePair.cs
- StatusCommandUI.cs
- Listbox.cs
- ZipIOExtraField.cs
- EmptyElement.cs
- ComponentRenameEvent.cs
- EntityFrameworkVersions.cs
- DataListItemCollection.cs
- MultilineStringConverter.cs
- NegotiateStream.cs
- LocalizationComments.cs
- PagerSettings.cs
- SamlAssertionKeyIdentifierClause.cs
- NegatedCellConstant.cs
- AncillaryOps.cs
- FieldBuilder.cs
- _NegoStream.cs
- VirtualDirectoryMapping.cs
- ToolStripGrip.cs
- BindingsCollection.cs
- LayoutSettings.cs
- DataGridColumn.cs
- BackEase.cs
- EncodingTable.cs
- PhysicalFontFamily.cs
- LoginCancelEventArgs.cs
- IntegrationExceptionEventArgs.cs
- NetStream.cs
- contentDescriptor.cs
- CaseCqlBlock.cs
- ColorConverter.cs
- EasingKeyFrames.cs
- ReliableMessagingVersion.cs
- PropertyTabAttribute.cs
- IIS7UserPrincipal.cs
- Errors.cs
- Shape.cs
- OleCmdHelper.cs
- CollectionChangeEventArgs.cs
- TextSelectionHighlightLayer.cs
- StorageAssociationSetMapping.cs
- TrackingProfileDeserializationException.cs
- DataControlLinkButton.cs
- UseLicense.cs
- MarkedHighlightComponent.cs
- WebMessageFormatHelper.cs
- ValidationHelper.cs
- ScopedKnownTypes.cs
- NetDataContractSerializer.cs
- IPipelineRuntime.cs
- EntityContainerAssociationSetEnd.cs
- webproxy.cs
- RegexRunner.cs
- QueryCacheKey.cs
- CounterSampleCalculator.cs
- QueryOutputWriter.cs
- GPStream.cs
- CategoryNameCollection.cs
- Panel.cs
- MailMessageEventArgs.cs
- ScriptDescriptor.cs
- OAVariantLib.cs
- ChannelManager.cs
- EventSource.cs
- DialogResultConverter.cs
- LocalizationParserHooks.cs
- ManagementClass.cs
- MarkupProperty.cs
- CopyAction.cs
- UnionCqlBlock.cs
- wmiutil.cs
- CodeLinePragma.cs
- ResourcePart.cs
- UnsettableComboBox.cs
- SByte.cs
- FixedSOMLineRanges.cs
- EdmType.cs
- SQLGuidStorage.cs
- FixedStringLookup.cs
- ServiceProviders.cs
- XamlStream.cs
- SqlTypeSystemProvider.cs
- Substitution.cs