Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CssStyleCollection.cs
- XmlElementAttribute.cs
- XpsSerializationManagerAsync.cs
- HttpFormatExtensions.cs
- GeometryGroup.cs
- SerializationInfoEnumerator.cs
- SQLInt16Storage.cs
- CancellationTokenSource.cs
- NullableDecimalSumAggregationOperator.cs
- DataContractSerializer.cs
- RayMeshGeometry3DHitTestResult.cs
- PolyLineSegment.cs
- BackStopAuthenticationModule.cs
- TextMarkerSource.cs
- DataObject.cs
- DbDataSourceEnumerator.cs
- BooleanSwitch.cs
- LoopExpression.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- EventHandlerList.cs
- PathGradientBrush.cs
- TranslateTransform.cs
- WbemException.cs
- OracleConnection.cs
- ViewManager.cs
- Route.cs
- CompatibleComparer.cs
- GroupItem.cs
- ChtmlTextWriter.cs
- DisableDpiAwarenessAttribute.cs
- CompilationLock.cs
- CodeTypeReferenceCollection.cs
- BuildResultCache.cs
- IdnElement.cs
- UnionExpr.cs
- NetworkAddressChange.cs
- RegisteredExpandoAttribute.cs
- ToolStripSplitStackLayout.cs
- ContainerVisual.cs
- WebPartDescription.cs
- CdpEqualityComparer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RightsManagementInformation.cs
- ReadOnlyMetadataCollection.cs
- WrapperEqualityComparer.cs
- XmlILModule.cs
- XmlAggregates.cs
- EntitySqlQueryCacheKey.cs
- DataGridViewDataConnection.cs
- GlyphInfoList.cs
- BigInt.cs
- XNodeValidator.cs
- OleStrCAMarshaler.cs
- UpdatePanelControlTrigger.cs
- LambdaExpression.cs
- PageRanges.cs
- ComponentManagerBroker.cs
- SqlDataSourceCommandParser.cs
- FieldAccessException.cs
- Stream.cs
- TakeQueryOptionExpression.cs
- AmbientLight.cs
- OutOfProcStateClientManager.cs
- CssTextWriter.cs
- WorkflowInlining.cs
- DataObjectPastingEventArgs.cs
- DataRecordObjectView.cs
- XmlNodeList.cs
- Panel.cs
- TextEndOfParagraph.cs
- NumberFormatInfo.cs
- ExpressionBindings.cs
- OdbcStatementHandle.cs
- FixedPage.cs
- SqlPersonalizationProvider.cs
- DataServiceQueryException.cs
- OleDbParameterCollection.cs
- LineVisual.cs
- HtmlLink.cs
- JsonCollectionDataContract.cs
- ClassHandlersStore.cs
- EdmConstants.cs
- filewebrequest.cs
- FixedSOMPageElement.cs
- StreamWithDictionary.cs
- TemplateBindingExtension.cs
- PrintDocument.cs
- DnsPermission.cs
- DescriptionAttribute.cs
- CodeNamespaceCollection.cs
- PersonalizationAdministration.cs
- StringSorter.cs
- Literal.cs
- FormViewActionList.cs
- Socket.cs
- ConfigXmlText.cs
- TransactionTraceIdentifier.cs
- DataRecordObjectView.cs
- HttpRuntime.cs
- EventLogTraceListener.cs