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
- PersonalizationProviderHelper.cs
- XPathDocumentIterator.cs
- EditingScope.cs
- Substitution.cs
- ProgressBarHighlightConverter.cs
- TypefaceMetricsCache.cs
- XmlRawWriter.cs
- ReferenceConverter.cs
- UTF8Encoding.cs
- DragEvent.cs
- RoutedEventArgs.cs
- XmlAtomicValue.cs
- DataGridViewRowCancelEventArgs.cs
- MimeTypeAttribute.cs
- SocketPermission.cs
- DocumentViewerConstants.cs
- GregorianCalendar.cs
- cryptoapiTransform.cs
- formatter.cs
- BinaryObjectWriter.cs
- EmbeddedMailObjectsCollection.cs
- ControlAdapter.cs
- ADMembershipUser.cs
- CharEntityEncoderFallback.cs
- DataGridViewEditingControlShowingEventArgs.cs
- FileLogRecordHeader.cs
- WebPartDisplayMode.cs
- EventsTab.cs
- PageAsyncTask.cs
- RequestResizeEvent.cs
- ResourceLoader.cs
- DataGridCell.cs
- UnhandledExceptionEventArgs.cs
- TableLayoutPanelCodeDomSerializer.cs
- SharedUtils.cs
- SHA384CryptoServiceProvider.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- XmlTypeMapping.cs
- SortableBindingList.cs
- TimeManager.cs
- SamlAuthenticationStatement.cs
- IPGlobalProperties.cs
- StylusButton.cs
- InputScopeAttribute.cs
- BamlRecords.cs
- XmlSchemaAll.cs
- CursorConverter.cs
- CheckPair.cs
- AbstractExpressions.cs
- UnauthorizedWebPart.cs
- RadialGradientBrush.cs
- CngProvider.cs
- RawMouseInputReport.cs
- BadImageFormatException.cs
- HashAlgorithm.cs
- ListViewUpdatedEventArgs.cs
- TrackingValidationObjectDictionary.cs
- RuntimeEnvironment.cs
- OdbcException.cs
- DataShape.cs
- CodeLinePragma.cs
- HandleDictionary.cs
- EmptyControlCollection.cs
- AsynchronousChannelMergeEnumerator.cs
- KoreanCalendar.cs
- ListSourceHelper.cs
- Visual3D.cs
- DurableEnlistmentState.cs
- ToolStripSplitButton.cs
- InputScopeNameConverter.cs
- SuppressMergeCheckAttribute.cs
- HttpResponseHeader.cs
- StatusBarDesigner.cs
- ThemeableAttribute.cs
- DecimalAnimationUsingKeyFrames.cs
- MenuItem.cs
- ColumnMapCopier.cs
- XmlSchemaInclude.cs
- GridEntryCollection.cs
- PersonalizationStateInfo.cs
- SortedList.cs
- XamlSerializerUtil.cs
- RightsManagementEncryptionTransform.cs
- ErrorWebPart.cs
- ClientConfigPaths.cs
- LocatorGroup.cs
- DataObject.cs
- ClientFormsAuthenticationCredentials.cs
- TreeView.cs
- HandlerBase.cs
- HtmlTableRowCollection.cs
- AbandonedMutexException.cs
- TwoPhaseCommit.cs
- JsonFormatGeneratorStatics.cs
- RichListBox.cs
- ActivityDesigner.cs
- WinFormsSpinner.cs
- Flowchart.cs
- NameValueConfigurationElement.cs
- WindowsRichEdit.cs