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
- ExpressionEditorAttribute.cs
- DefinitionUpdate.cs
- Header.cs
- ProvidersHelper.cs
- ExpressionTable.cs
- TextBreakpoint.cs
- EventWaitHandleSecurity.cs
- Literal.cs
- DbSetClause.cs
- TreeNodeConverter.cs
- FullTextBreakpoint.cs
- SparseMemoryStream.cs
- DetailsViewModeEventArgs.cs
- ComboBox.cs
- XappLauncher.cs
- MasterPageParser.cs
- PrtTicket_Public_Simple.cs
- FlatButtonAppearance.cs
- ProfileBuildProvider.cs
- XmlValidatingReader.cs
- Matrix3D.cs
- StateMachineSubscription.cs
- DataListAutoFormat.cs
- IResourceProvider.cs
- RuntimeArgumentHandle.cs
- ProfessionalColors.cs
- CodeGroup.cs
- ActivitySurrogateSelector.cs
- TableLayoutPanel.cs
- VectorAnimationBase.cs
- ServiceReference.cs
- DetailsViewInsertEventArgs.cs
- TimeSpanStorage.cs
- UniformGrid.cs
- ExternalDataExchangeClient.cs
- RealizationContext.cs
- MsmqActivation.cs
- RuntimeConfigurationRecord.cs
- LineServicesCallbacks.cs
- XsdDataContractImporter.cs
- PropertyInfoSet.cs
- XmlHierarchyData.cs
- CuspData.cs
- EventToken.cs
- SnapLine.cs
- ToolStripSeparatorRenderEventArgs.cs
- FixedDocumentSequencePaginator.cs
- WebServiceEnumData.cs
- ApplicationInterop.cs
- EventLogPermissionEntry.cs
- TcpPortSharing.cs
- MissingFieldException.cs
- SQLGuid.cs
- Base64Encoding.cs
- CodeTypeReferenceExpression.cs
- StringToken.cs
- RenderCapability.cs
- BitmapEffectDrawing.cs
- HelpFileFileNameEditor.cs
- SchemaCollectionCompiler.cs
- RequestCachePolicyConverter.cs
- ZipFileInfoCollection.cs
- HwndKeyboardInputProvider.cs
- PieceDirectory.cs
- ParseHttpDate.cs
- Errors.cs
- ScrollBarAutomationPeer.cs
- DesignerCategoryAttribute.cs
- SharedStatics.cs
- CellCreator.cs
- ToolStripPanelSelectionGlyph.cs
- MaskedTextBoxTextEditor.cs
- TreeNodeEventArgs.cs
- SQLString.cs
- ScriptHandlerFactory.cs
- MetaModel.cs
- UnsafeNativeMethods.cs
- RectAnimationBase.cs
- XmlNamespaceManager.cs
- DataColumnMappingCollection.cs
- AssociatedControlConverter.cs
- GridLength.cs
- SoapMessage.cs
- NumberFunctions.cs
- AsyncPostBackTrigger.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XmlSerializationWriter.cs
- SelectionProcessor.cs
- MessageDecoder.cs
- OdbcDataAdapter.cs
- XmlDataProvider.cs
- VisualSerializer.cs
- Rotation3DAnimation.cs
- MenuItem.cs
- XmlTextAttribute.cs
- HierarchicalDataTemplate.cs
- TextViewBase.cs
- WmfPlaceableFileHeader.cs
- NativeMethods.cs
- Int64Converter.cs