Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LambdaCompiler.Lambda.cs
- ToolStripDropDownDesigner.cs
- altserialization.cs
- AutoCompleteStringCollection.cs
- DesignerProperties.cs
- MaskDescriptor.cs
- HostingEnvironment.cs
- TypedServiceOperationListItem.cs
- MenuEventArgs.cs
- Vector3DAnimationBase.cs
- AccessKeyManager.cs
- AuthenticodeSignatureInformation.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- XmlDataCollection.cs
- FirewallWrapper.cs
- CachedPathData.cs
- COMException.cs
- NativeMethods.cs
- PrePrepareMethodAttribute.cs
- ReadOnlyCollection.cs
- UInt16.cs
- XmlSchemaElement.cs
- SessionState.cs
- NavigationExpr.cs
- SetStateEventArgs.cs
- Point3DConverter.cs
- Column.cs
- AttachedPropertyBrowsableAttribute.cs
- ObjectQueryExecutionPlan.cs
- PageTrueTypeFont.cs
- MethodInfo.cs
- PKCS1MaskGenerationMethod.cs
- UniqueConstraint.cs
- VisualStyleTypesAndProperties.cs
- UInt16Storage.cs
- DeadCharTextComposition.cs
- FacetDescriptionElement.cs
- TouchDevice.cs
- X509CertificateClaimSet.cs
- PersistencePipeline.cs
- _TransmitFileOverlappedAsyncResult.cs
- EventWaitHandleSecurity.cs
- TdsValueSetter.cs
- SrgsGrammar.cs
- TabPage.cs
- FileStream.cs
- RangeValueProviderWrapper.cs
- TextTreeRootNode.cs
- DataSysAttribute.cs
- DataControlImageButton.cs
- ElementNotAvailableException.cs
- SoapParser.cs
- DispatchChannelSink.cs
- DataControlImageButton.cs
- DropShadowEffect.cs
- Error.cs
- XmlSchemaType.cs
- XamlGridLengthSerializer.cs
- bindurihelper.cs
- Line.cs
- ImageListStreamer.cs
- Clipboard.cs
- ResourceDisplayNameAttribute.cs
- embossbitmapeffect.cs
- ContactManager.cs
- AutoGeneratedFieldProperties.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- ImageListImageEditor.cs
- Int32Storage.cs
- ResourceSet.cs
- TdsParserHelperClasses.cs
- PKCS1MaskGenerationMethod.cs
- XmlReaderDelegator.cs
- FaultDescriptionCollection.cs
- ListViewItem.cs
- DeploymentExceptionMapper.cs
- PrePrepareMethodAttribute.cs
- safex509handles.cs
- SingleObjectCollection.cs
- DocumentPageViewAutomationPeer.cs
- FixedSOMLineCollection.cs
- QualificationDataAttribute.cs
- ProxyAttribute.cs
- DataErrorValidationRule.cs
- BinaryParser.cs
- BitmapEffectDrawingContextWalker.cs
- SyndicationDeserializer.cs
- RegexCode.cs
- EntityCommandExecutionException.cs
- Events.cs
- DesignerInterfaces.cs
- KeyValueConfigurationCollection.cs
- SafeNativeMethods.cs
- PersonalizationProviderCollection.cs
- TextWriter.cs
- RequiredFieldValidator.cs
- CodeBlockBuilder.cs
- ResourceDictionaryCollection.cs
- FormViewUpdatedEventArgs.cs
- JournalEntryStack.cs