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
- ContainerAction.cs
- RegisteredArrayDeclaration.cs
- SafeSystemMetrics.cs
- PagedDataSource.cs
- Vector3DConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- RuleEngine.cs
- EdmToObjectNamespaceMap.cs
- GroupBoxDesigner.cs
- RightNameExpirationInfoPair.cs
- Mutex.cs
- StylusDevice.cs
- ShadowGlyph.cs
- WebPartHeaderCloseVerb.cs
- WindowsContainer.cs
- WebPartConnectionsConfigureVerb.cs
- SuspendDesigner.cs
- ContentHostHelper.cs
- AVElementHelper.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- AudioFileOut.cs
- TextBox.cs
- MethodAccessException.cs
- XsltConvert.cs
- TrackingConditionCollection.cs
- ApplicationTrust.cs
- PropertyToken.cs
- SqlDataSourceCommandEventArgs.cs
- ImageConverter.cs
- UIAgentAsyncParams.cs
- SqlFileStream.cs
- MethodBody.cs
- RenderDataDrawingContext.cs
- DateTimeValueSerializerContext.cs
- UrlParameterReader.cs
- CachedTypeface.cs
- Canonicalizers.cs
- SpellerStatusTable.cs
- ToolboxItemAttribute.cs
- ClientOptions.cs
- ValueUtilsSmi.cs
- WsatServiceCertificate.cs
- StringFreezingAttribute.cs
- ComponentResourceKeyConverter.cs
- _emptywebproxy.cs
- Table.cs
- CollectionBase.cs
- ErrorFormatter.cs
- EdmComplexTypeAttribute.cs
- TimeoutValidationAttribute.cs
- FixedStringLookup.cs
- SqlNamer.cs
- CodeExpressionCollection.cs
- DataSpaceManager.cs
- SessionEndingEventArgs.cs
- ToolStripOverflowButton.cs
- TypeUnloadedException.cs
- RoutedEvent.cs
- HtmlInputRadioButton.cs
- SerTrace.cs
- GifBitmapEncoder.cs
- ConstraintCollection.cs
- _SafeNetHandles.cs
- ReferenceService.cs
- ListSortDescriptionCollection.cs
- Expander.cs
- complextypematerializer.cs
- PlainXmlDeserializer.cs
- NativeMethods.cs
- UnsafeNativeMethods.cs
- CompareValidator.cs
- AudioLevelUpdatedEventArgs.cs
- WorkflowControlClient.cs
- DataGridViewColumnEventArgs.cs
- WizardStepBase.cs
- Substitution.cs
- PathData.cs
- LinqToSqlWrapper.cs
- WeakReadOnlyCollection.cs
- TimeSpanParse.cs
- BamlRecords.cs
- FrameDimension.cs
- RectangleF.cs
- DodSequenceMerge.cs
- NonSerializedAttribute.cs
- HttpRawResponse.cs
- HttpConfigurationContext.cs
- FontCollection.cs
- HashMembershipCondition.cs
- BooleanAnimationUsingKeyFrames.cs
- SelectionProviderWrapper.cs
- dataSvcMapFileLoader.cs
- FilterQuery.cs
- XmlValidatingReaderImpl.cs
- WebPartDisplayModeCancelEventArgs.cs
- EntityCommandExecutionException.cs
- TransportContext.cs
- EventMap.cs
- Panel.cs
- FieldNameLookup.cs