Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- SelectorItemAutomationPeer.cs
- XPathParser.cs
- LogLogRecordEnumerator.cs
- DesignParameter.cs
- NonceToken.cs
- CacheMemory.cs
- XamlPointCollectionSerializer.cs
- KerberosRequestorSecurityToken.cs
- ChannelDispatcherCollection.cs
- WebPartAddingEventArgs.cs
- SqlFunctionAttribute.cs
- UserPersonalizationStateInfo.cs
- ClientSettingsStore.cs
- Trace.cs
- AutoResizedEvent.cs
- COM2EnumConverter.cs
- NaturalLanguageHyphenator.cs
- EntityDataSourceValidationException.cs
- Lease.cs
- ToolboxItem.cs
- TextPointerBase.cs
- IWorkflowDebuggerService.cs
- SizeAnimationUsingKeyFrames.cs
- Int32Storage.cs
- GeneratedView.cs
- SerializableAttribute.cs
- RepeaterItemEventArgs.cs
- XPathNodePointer.cs
- ContentControl.cs
- Trace.cs
- ResolveDuplexCD1AsyncResult.cs
- SmtpMail.cs
- PropertyTabAttribute.cs
- TextTreeExtractElementUndoUnit.cs
- ThreadStaticAttribute.cs
- FileChangeNotifier.cs
- ZipIOLocalFileBlock.cs
- InputScopeConverter.cs
- ListViewItem.cs
- GeometryValueSerializer.cs
- ConnectionInterfaceCollection.cs
- SimpleType.cs
- UserNameSecurityTokenProvider.cs
- ExpressionParser.cs
- MetadataElement.cs
- SupportsPreviewControlAttribute.cs
- Int32Storage.cs
- DeflateInput.cs
- GridViewUpdateEventArgs.cs
- CannotUnloadAppDomainException.cs
- Collection.cs
- ListViewContainer.cs
- SqlRowUpdatingEvent.cs
- HtmlInputImage.cs
- SessionEndingCancelEventArgs.cs
- UnsafeNativeMethods.cs
- SupportsPreviewControlAttribute.cs
- NodeInfo.cs
- DoubleAnimationUsingKeyFrames.cs
- PingOptions.cs
- ZipIOLocalFileHeader.cs
- FillBehavior.cs
- UTF8Encoding.cs
- Logging.cs
- SqlInternalConnectionTds.cs
- TextContainer.cs
- WinEventTracker.cs
- CommandConverter.cs
- WindowsRichEdit.cs
- Sequence.cs
- SQLDecimal.cs
- OperationDescriptionCollection.cs
- ActiveDocumentEvent.cs
- HtmlTextBoxAdapter.cs
- PointLightBase.cs
- Page.cs
- StaticTextPointer.cs
- TemplateParser.cs
- ConsoleCancelEventArgs.cs
- Size.cs
- CollectionViewGroupInternal.cs
- VBIdentifierNameEditor.cs
- DataSourceCacheDurationConverter.cs
- WebBaseEventKeyComparer.cs
- Rect3DValueSerializer.cs
- ScriptMethodAttribute.cs
- PropertyGridEditorPart.cs
- NativeCppClassAttribute.cs
- DeferredRunTextReference.cs
- SectionXmlInfo.cs
- NumericUpDownAcceleration.cs
- DPAPIProtectedConfigurationProvider.cs
- SerializationInfoEnumerator.cs
- HttpWebRequest.cs
- ForceCopyBuildProvider.cs
- TTSEngineTypes.cs
- CharAnimationUsingKeyFrames.cs
- EncoderParameters.cs
- FixedSOMPage.cs
- PackWebRequest.cs