Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReachFixedDocumentSerializerAsync.cs
- DataSourceControl.cs
- ServiceHostingEnvironment.cs
- DesignColumnCollection.cs
- SQLString.cs
- HtmlTextViewAdapter.cs
- TabControl.cs
- RoleGroupCollectionEditor.cs
- EntitySetBaseCollection.cs
- WizardForm.cs
- AssemblyNameProxy.cs
- SimpleExpression.cs
- TextEffect.cs
- SizeLimitedCache.cs
- Certificate.cs
- SqlUDTStorage.cs
- XmlEntityReference.cs
- EUCJPEncoding.cs
- XmlAnyAttributeAttribute.cs
- ErrorHandler.cs
- Keyboard.cs
- MimePart.cs
- ControlLocalizer.cs
- httpstaticobjectscollection.cs
- QueryStringHandler.cs
- GlyphingCache.cs
- TrackingMemoryStream.cs
- FormatConvertedBitmap.cs
- HelpFileFileNameEditor.cs
- SingleAnimationUsingKeyFrames.cs
- TextSearch.cs
- LabelInfo.cs
- InvokeProviderWrapper.cs
- TabRenderer.cs
- CellConstantDomain.cs
- ThreadNeutralSemaphore.cs
- QilParameter.cs
- Stroke.cs
- LineUtil.cs
- Compiler.cs
- KoreanLunisolarCalendar.cs
- SymDocumentType.cs
- NameValueConfigurationCollection.cs
- SqlBinder.cs
- VideoDrawing.cs
- PathFigureCollectionConverter.cs
- AlignmentYValidation.cs
- Frame.cs
- Helpers.cs
- XmlDataSource.cs
- OdbcParameter.cs
- MediaContext.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ConnectionProviderAttribute.cs
- XPathNavigatorKeyComparer.cs
- GlyphRunDrawing.cs
- DataBoundControl.cs
- DeleteIndexBinder.cs
- WindowsTab.cs
- Selector.cs
- WindowsListViewScroll.cs
- DiagnosticsConfiguration.cs
- XamlClipboardData.cs
- ToolStripContainer.cs
- DocumentPageTextView.cs
- XmlSchemaValidator.cs
- ObjectStateFormatter.cs
- WindowsGrip.cs
- SessionPageStatePersister.cs
- SafeArrayTypeMismatchException.cs
- MethodRental.cs
- InheritanceAttribute.cs
- COM2PictureConverter.cs
- DeviceContexts.cs
- GridItemCollection.cs
- AutoCompleteStringCollection.cs
- WindowsContainer.cs
- TableLayoutRowStyleCollection.cs
- MailMessage.cs
- GlyphRun.cs
- CodeCatchClause.cs
- NavigationProperty.cs
- OleDbFactory.cs
- ConnectionPoolManager.cs
- UnicodeEncoding.cs
- DataSourceCache.cs
- SqlVisitor.cs
- PackageStore.cs
- InvalidComObjectException.cs
- HtmlShimManager.cs
- CodeCommentStatementCollection.cs
- IUnknownConstantAttribute.cs
- TableRowCollection.cs
- ConnectionsZone.cs
- XslTransform.cs
- SqlExpander.cs
- ProxyGenerationError.cs
- OleDbConnectionFactory.cs
- XmlDataProvider.cs
- SessionEndingCancelEventArgs.cs