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
- WpfGeneratedKnownTypes.cs
- LogPolicy.cs
- NGCSerializationManager.cs
- EditingCommands.cs
- ColorBlend.cs
- DocumentPage.cs
- SqlNodeTypeOperators.cs
- DBBindings.cs
- MouseActionValueSerializer.cs
- FileVersionInfo.cs
- RC2CryptoServiceProvider.cs
- METAHEADER.cs
- DetailsViewUpdateEventArgs.cs
- ReachBasicContext.cs
- TypeReference.cs
- XslAstAnalyzer.cs
- SapiAttributeParser.cs
- MediaElement.cs
- AssemblyName.cs
- ContentPosition.cs
- DocComment.cs
- PathSegmentCollection.cs
- AnnouncementInnerClientCD1.cs
- FileIOPermission.cs
- UIAgentCrashedException.cs
- TrackingProfile.cs
- BindingExpressionBase.cs
- DetailsViewDesigner.cs
- EncoderBestFitFallback.cs
- Win32Exception.cs
- ProviderSettingsCollection.cs
- ArithmeticException.cs
- WebPartManager.cs
- StylusCaptureWithinProperty.cs
- TextAdaptor.cs
- ViewValidator.cs
- HttpListenerException.cs
- BamlWriter.cs
- BitmapEffectInput.cs
- Rfc2898DeriveBytes.cs
- EditingScope.cs
- ReflectTypeDescriptionProvider.cs
- NamespaceQuery.cs
- FileSystemWatcher.cs
- ConnectionManagementElementCollection.cs
- BoundColumn.cs
- LinqDataSourceInsertEventArgs.cs
- BooleanExpr.cs
- PageFunction.cs
- ProcessHostMapPath.cs
- SmtpReplyReader.cs
- DataTableReaderListener.cs
- XPathDocumentBuilder.cs
- baseshape.cs
- OracleSqlParser.cs
- PointUtil.cs
- ExtensionDataObject.cs
- SafeNativeMethodsOther.cs
- StaticExtension.cs
- IItemContainerGenerator.cs
- CacheChildrenQuery.cs
- XmlWriterDelegator.cs
- SiteMapDataSourceView.cs
- LockRecursionException.cs
- RuntimeCompatibilityAttribute.cs
- ToolStripSystemRenderer.cs
- CustomWebEventKey.cs
- MimeTypeAttribute.cs
- ImportCatalogPart.cs
- Compress.cs
- TransformProviderWrapper.cs
- Automation.cs
- ProvidersHelper.cs
- Serializer.cs
- SolidBrush.cs
- DateRangeEvent.cs
- JournalEntry.cs
- ObjectDataSourceView.cs
- RemoteHelper.cs
- DataGridItemAttachedStorage.cs
- RuntimeResourceSet.cs
- SoapIncludeAttribute.cs
- ClassData.cs
- DataTablePropertyDescriptor.cs
- IDQuery.cs
- XmlSchemaAttributeGroupRef.cs
- Splitter.cs
- PrintDialog.cs
- PriorityQueue.cs
- DrawingCollection.cs
- WebPartCancelEventArgs.cs
- Boolean.cs
- ChannelFactoryRefCache.cs
- Win32KeyboardDevice.cs
- SHA384Managed.cs
- LOSFormatter.cs
- Message.cs
- Win32PrintDialog.cs
- WebControlAdapter.cs
- SqlClientFactory.cs