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
- ZipIOExtraFieldPaddingElement.cs
- DataMemberAttribute.cs
- UnauthorizedWebPart.cs
- HttpRawResponse.cs
- QilInvoke.cs
- EdmFunctionAttribute.cs
- TextAction.cs
- FileLevelControlBuilderAttribute.cs
- QuadraticBezierSegment.cs
- FindResponse.cs
- DataRowView.cs
- BufferedMessageWriter.cs
- EventNotify.cs
- EventLogLink.cs
- CollectionViewSource.cs
- HierarchicalDataSourceControl.cs
- HttpContextServiceHost.cs
- CoreSwitches.cs
- CrossContextChannel.cs
- DecimalAnimationUsingKeyFrames.cs
- SrgsElement.cs
- BufferAllocator.cs
- RenderCapability.cs
- SystemEvents.cs
- HttpInputStream.cs
- PropertyChangedEventManager.cs
- ProviderConnectionPoint.cs
- CodeMemberMethod.cs
- LinkedList.cs
- OverlappedAsyncResult.cs
- CompiledRegexRunnerFactory.cs
- SQLInt32Storage.cs
- SecureConversationServiceElement.cs
- ToolBarButton.cs
- DocumentStatusResources.cs
- UIElementCollection.cs
- XPathNodeHelper.cs
- DataTableNewRowEvent.cs
- ILGen.cs
- ManagedIStream.cs
- BrowserCapabilitiesCompiler.cs
- BrowserDefinition.cs
- RegisteredHiddenField.cs
- SymbolEqualComparer.cs
- DetailsViewUpdatedEventArgs.cs
- AsyncCodeActivity.cs
- WpfPayload.cs
- PasswordDeriveBytes.cs
- Storyboard.cs
- HtmlObjectListAdapter.cs
- TextViewDesigner.cs
- SrgsElementFactoryCompiler.cs
- RelOps.cs
- DataList.cs
- Tablet.cs
- RepeaterCommandEventArgs.cs
- SchemaImporterExtensionElementCollection.cs
- XmlSchemaObjectTable.cs
- BitmapEffectInput.cs
- UdpRetransmissionSettings.cs
- MergeLocalizationDirectives.cs
- BitmapVisualManager.cs
- LogicalExpressionTypeConverter.cs
- TraceContextRecord.cs
- MenuItemStyleCollection.cs
- HttpStreamMessageEncoderFactory.cs
- SimplePropertyEntry.cs
- TransformDescriptor.cs
- LicenseException.cs
- EventItfInfo.cs
- FormsAuthenticationUserCollection.cs
- EventListener.cs
- EncryptedHeader.cs
- ObjectItemNoOpAssemblyLoader.cs
- GeometryDrawing.cs
- ADMembershipProvider.cs
- BooleanProjectedSlot.cs
- ErrorItem.cs
- UIElement3DAutomationPeer.cs
- DataGridViewUtilities.cs
- DataGridViewImageCell.cs
- FontEmbeddingManager.cs
- CategoryNameCollection.cs
- _SSPIWrapper.cs
- CurrentTimeZone.cs
- _IPv4Address.cs
- Screen.cs
- PreviewPrintController.cs
- MembershipSection.cs
- AnimatedTypeHelpers.cs
- BitmapEffectGroup.cs
- errorpatternmatcher.cs
- WebRequestModulesSection.cs
- RuleConditionDialog.cs
- CopyNodeSetAction.cs
- GridViewPageEventArgs.cs
- GenericIdentity.cs
- DbConnectionPool.cs
- CodeTypeMemberCollection.cs
- DataControlPagerLinkButton.cs