Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- RawKeyboardInputReport.cs
- SurrogateChar.cs
- CurrentChangingEventArgs.cs
- WmpBitmapEncoder.cs
- RemoteWebConfigurationHost.cs
- ObjectManager.cs
- CodeExpressionCollection.cs
- ResolveCriteria11.cs
- RepeatBehavior.cs
- WebSysDefaultValueAttribute.cs
- BindingCompleteEventArgs.cs
- WebReferenceOptions.cs
- XPathArrayIterator.cs
- SpotLight.cs
- TraceSwitch.cs
- ReadOnlyDataSourceView.cs
- OrderByBuilder.cs
- DoubleLinkListEnumerator.cs
- WindowsContainer.cs
- SafeHGlobalHandleCritical.cs
- XmlParser.cs
- LiteralDesigner.cs
- DateTimePickerDesigner.cs
- XXXOnTypeBuilderInstantiation.cs
- StaticFileHandler.cs
- OdbcInfoMessageEvent.cs
- SharedStatics.cs
- ValidateNames.cs
- InputScopeNameConverter.cs
- UsernameTokenFactoryCredential.cs
- ApplicationSettingsBase.cs
- StringDictionary.cs
- Rotation3DKeyFrameCollection.cs
- ItemCheckEvent.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WindowsListBox.cs
- DataGrid.cs
- TypeInitializationException.cs
- BindingSourceDesigner.cs
- SqlCharStream.cs
- SessionPageStateSection.cs
- AssemblyInfo.cs
- NegotiateStream.cs
- fixedPageContentExtractor.cs
- CommonProperties.cs
- RotateTransform.cs
- ValidationRule.cs
- FileUtil.cs
- CollectionView.cs
- CallSite.cs
- PolyLineSegment.cs
- SessionStateSection.cs
- NamedElement.cs
- EventMappingSettings.cs
- x509store.cs
- RegisteredExpandoAttribute.cs
- DocumentXmlWriter.cs
- EnumCodeDomSerializer.cs
- ScrollBarAutomationPeer.cs
- ActivityBuilder.cs
- TableSectionStyle.cs
- Helper.cs
- BufferedWebEventProvider.cs
- CookieHandler.cs
- DataColumnPropertyDescriptor.cs
- NativeCompoundFileAPIs.cs
- WinFormsSpinner.cs
- ReflectionUtil.cs
- SqlTypeConverter.cs
- WebEventCodes.cs
- AlphaSortedEnumConverter.cs
- WeakReference.cs
- XmlDataSource.cs
- StylusPointCollection.cs
- OutputCacheSettingsSection.cs
- RC2CryptoServiceProvider.cs
- ImageClickEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- LineInfo.cs
- AssemblyAttributes.cs
- ModelPropertyCollectionImpl.cs
- MailAddressCollection.cs
- BindingExpressionUncommonField.cs
- RowTypePropertyElement.cs
- ApplicationInfo.cs
- WebPartsSection.cs
- FlagsAttribute.cs
- MetadataItemSerializer.cs
- BypassElement.cs
- TargetInvocationException.cs
- MouseActionValueSerializer.cs
- SelectionWordBreaker.cs
- MsmqIntegrationMessagePool.cs
- DiscoveryVersion.cs
- ModelFunction.cs
- RegionData.cs
- WebSysDescriptionAttribute.cs
- RowsCopiedEventArgs.cs
- UnionQueryOperator.cs
- HitTestParameters3D.cs