Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CallbackException.cs
- PointCollection.cs
- ToolStripContentPanel.cs
- TreeChangeInfo.cs
- SafeEventLogWriteHandle.cs
- ProfileProvider.cs
- objectquery_tresulttype.cs
- EntityDataSourceSelectedEventArgs.cs
- HuffCodec.cs
- DataSourceControlBuilder.cs
- MetadataPropertyvalue.cs
- EdmValidator.cs
- MinimizableAttributeTypeConverter.cs
- GridViewHeaderRowPresenter.cs
- ListViewGroupItemCollection.cs
- Label.cs
- AxWrapperGen.cs
- RadioButtonAutomationPeer.cs
- CodeTypeDeclarationCollection.cs
- SqlMultiplexer.cs
- HashRepartitionStream.cs
- FontFaceLayoutInfo.cs
- LabelAutomationPeer.cs
- ScaleTransform3D.cs
- CompositeDataBoundControl.cs
- InProcStateClientManager.cs
- MustUnderstandSoapException.cs
- ButtonChrome.cs
- TextParentUndoUnit.cs
- LambdaCompiler.Statements.cs
- LoadedOrUnloadedOperation.cs
- DataViewManager.cs
- TranslateTransform.cs
- SByte.cs
- PhysicalFontFamily.cs
- ObjectViewEntityCollectionData.cs
- ClientConfigPaths.cs
- IDictionary.cs
- VBIdentifierTrimConverter.cs
- WebOperationContext.cs
- StylusPointPropertyInfoDefaults.cs
- HwndHostAutomationPeer.cs
- StrokeIntersection.cs
- XmlText.cs
- Expression.cs
- PluralizationService.cs
- DoubleLink.cs
- MsmqAppDomainProtocolHandler.cs
- GridViewCancelEditEventArgs.cs
- IListConverters.cs
- TypeContext.cs
- TileModeValidation.cs
- SessionStateSection.cs
- SiteOfOriginPart.cs
- WindowsFormsDesignerOptionService.cs
- UpdateTranslator.cs
- webeventbuffer.cs
- DependencyPropertyValueSerializer.cs
- DBCommandBuilder.cs
- util.cs
- Socket.cs
- DATA_BLOB.cs
- DbParameterCollection.cs
- BevelBitmapEffect.cs
- RtfToXamlReader.cs
- KeyboardNavigation.cs
- ListViewItemSelectionChangedEvent.cs
- SelectionItemPattern.cs
- GridViewRow.cs
- SendOperation.cs
- Label.cs
- DynamicValueConverter.cs
- UpdateException.cs
- PaperSize.cs
- UncommonField.cs
- ThreadExceptionEvent.cs
- AccessedThroughPropertyAttribute.cs
- SiteMapNodeCollection.cs
- SiteMap.cs
- EmptyCollection.cs
- FileUpload.cs
- XmlMapping.cs
- RealProxy.cs
- RotateTransform.cs
- DataColumnMapping.cs
- RequestSecurityTokenResponseCollection.cs
- Dynamic.cs
- ListViewDeletedEventArgs.cs
- UntypedNullExpression.cs
- ResourceExpressionBuilder.cs
- ZipIOCentralDirectoryBlock.cs
- XmlQueryRuntime.cs
- EntityTypeEmitter.cs
- ShapeTypeface.cs
- IdentityManager.cs
- Margins.cs
- DependencyPropertyHelper.cs
- KeyedCollection.cs
- WindowsComboBox.cs
- DataGridViewRowEventArgs.cs