Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSchemaSimpleType.cs
- ObjectMemberMapping.cs
- ListenerHandler.cs
- ObjectHelper.cs
- SendActivityDesignerTheme.cs
- XmlElementAttributes.cs
- Input.cs
- MetadataArtifactLoader.cs
- SizeChangedInfo.cs
- NumberFormatInfo.cs
- ThreadPool.cs
- SqlException.cs
- EntityTransaction.cs
- DataRecordObjectView.cs
- sitestring.cs
- MSAAWinEventWrap.cs
- XAMLParseException.cs
- WorkflowViewService.cs
- TypeNameHelper.cs
- RelatedImageListAttribute.cs
- GetIndexBinder.cs
- WebMethodAttribute.cs
- ItemsPanelTemplate.cs
- ResourceReferenceKeyNotFoundException.cs
- AnnotationComponentManager.cs
- TableLayoutSettings.cs
- RenderContext.cs
- ConfigXmlElement.cs
- NamespaceInfo.cs
- ErrorEventArgs.cs
- TransformerInfoCollection.cs
- ParameterBuilder.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ObjectManager.cs
- SizeChangedEventArgs.cs
- SqlNodeTypeOperators.cs
- QilTargetType.cs
- XmlDataDocument.cs
- HtmlMeta.cs
- DrawListViewItemEventArgs.cs
- ExpandedWrapper.cs
- KeyboardEventArgs.cs
- ColorPalette.cs
- DataGridViewControlCollection.cs
- RecordConverter.cs
- ImageCollectionEditor.cs
- WebHttpSecurityElement.cs
- StringResourceManager.cs
- GridViewRowEventArgs.cs
- XmlEventCache.cs
- CodeActivity.cs
- SupportsEventValidationAttribute.cs
- FixedSchema.cs
- DependsOnAttribute.cs
- BamlTreeMap.cs
- StorageComplexTypeMapping.cs
- DeviceContext2.cs
- Wildcard.cs
- SystemBrushes.cs
- SectionInformation.cs
- RelationshipEnd.cs
- ParentQuery.cs
- ImageButton.cs
- GroupBoxAutomationPeer.cs
- CodeDirectiveCollection.cs
- DataGridViewTextBoxCell.cs
- SqlNodeAnnotation.cs
- ContextBase.cs
- SwitchAttribute.cs
- SpecularMaterial.cs
- DictionarySectionHandler.cs
- Int32Storage.cs
- ToolStripLabel.cs
- ThreadPool.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- ToolStripContentPanelDesigner.cs
- GeometryCollection.cs
- ListControl.cs
- TextEditorLists.cs
- AsymmetricAlgorithm.cs
- MarkupExtensionParser.cs
- GenericTypeParameterBuilder.cs
- GeneralTransformCollection.cs
- TokenCreationParameter.cs
- NativeMethods.cs
- HyperLink.cs
- StrokeCollection2.cs
- SolidColorBrush.cs
- SourceFilter.cs
- unitconverter.cs
- SystemKeyConverter.cs
- ConnectionStringsExpressionEditor.cs
- VisualStateGroup.cs
- Journaling.cs
- WebPartConnectionsConfigureVerb.cs
- IgnoreSectionHandler.cs
- PointConverter.cs
- RelationshipDetailsCollection.cs
- BaseCodePageEncoding.cs
- CacheVirtualItemsEvent.cs