Code:
/ DotNET / DotNET / 8.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
- CompoundFileStreamReference.cs
- DoubleCollection.cs
- KnownTypesHelper.cs
- SettingsPropertyWrongTypeException.cs
- MLangCodePageEncoding.cs
- ListViewItem.cs
- PagerStyle.cs
- Point4DValueSerializer.cs
- ArrayListCollectionBase.cs
- ParagraphResult.cs
- TdsParserHelperClasses.cs
- Control.cs
- GeneralTransform3DGroup.cs
- ClientType.cs
- Matrix3DValueSerializer.cs
- CheckBox.cs
- RowUpdatedEventArgs.cs
- TreeViewHitTestInfo.cs
- BooleanExpr.cs
- EmptyQuery.cs
- QilInvoke.cs
- TransformBlockRequest.cs
- OracleCommand.cs
- Int16Converter.cs
- PrintDocument.cs
- SystemMulticastIPAddressInformation.cs
- ExtentJoinTreeNode.cs
- followingsibling.cs
- BitmapEffectInputConnector.cs
- DefaultDiscoveryService.cs
- WebControlsSection.cs
- InvalidCommandTreeException.cs
- GraphicsContext.cs
- StreamMarshaler.cs
- TemplateInstanceAttribute.cs
- DrawingVisual.cs
- XmlAttributeCache.cs
- BindingsSection.cs
- RegistrationServices.cs
- XhtmlTextWriter.cs
- RoleBoolean.cs
- InputLanguage.cs
- TextParagraph.cs
- DurableMessageDispatchInspector.cs
- DeobfuscatingStream.cs
- EventListener.cs
- FileSecurity.cs
- SByteConverter.cs
- RegularExpressionValidator.cs
- PasswordTextContainer.cs
- OptionalColumn.cs
- Style.cs
- DoubleLink.cs
- x509store.cs
- HttpConfigurationSystem.cs
- Error.cs
- SafeEventHandle.cs
- ComboBox.cs
- GroupItem.cs
- ReadWriteSpinLock.cs
- RecognizeCompletedEventArgs.cs
- CryptoStream.cs
- AccessibilityApplicationManager.cs
- FormatVersion.cs
- RightsManagementSuppressedStream.cs
- DodSequenceMerge.cs
- Win32Native.cs
- BrowserCapabilitiesCodeGenerator.cs
- NonPrimarySelectionGlyph.cs
- DataGridViewCellFormattingEventArgs.cs
- GlyphTypeface.cs
- IdnMapping.cs
- nulltextnavigator.cs
- ValueSerializer.cs
- UnsafeNativeMethodsTablet.cs
- XmlDictionaryReaderQuotas.cs
- TraversalRequest.cs
- isolationinterop.cs
- HttpCachePolicyElement.cs
- X509Certificate2.cs
- VectorAnimationBase.cs
- SelectionPatternIdentifiers.cs
- RootProfilePropertySettingsCollection.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- KeyNotFoundException.cs
- OleDbCommand.cs
- WindowsFormsHostPropertyMap.cs
- DispatcherHooks.cs
- DeferredSelectedIndexReference.cs
- XamlPoint3DCollectionSerializer.cs
- RbTree.cs
- ReplyChannelAcceptor.cs
- LayoutManager.cs
- Button.cs
- ListBindableAttribute.cs
- DesignTimeHTMLTextWriter.cs
- SettingsPropertyIsReadOnlyException.cs
- ElementProxy.cs
- Component.cs
- Resources.Designer.cs