Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ByValueEqualityComparer.cs
- Identifier.cs
- BamlResourceDeserializer.cs
- SerializationSectionGroup.cs
- Deserializer.cs
- SingleQueryOperator.cs
- HostProtectionPermission.cs
- XPathExpr.cs
- FixedStringLookup.cs
- InlineUIContainer.cs
- ObjectDataSourceEventArgs.cs
- ToggleButton.cs
- CustomAttributeSerializer.cs
- PortCache.cs
- StatusBarPanel.cs
- InstanceNormalEvent.cs
- UserControlCodeDomTreeGenerator.cs
- Int32AnimationUsingKeyFrames.cs
- ScrollPattern.cs
- CodeDirectoryCompiler.cs
- SystemResourceKey.cs
- PageCatalogPart.cs
- RadioButton.cs
- DateTime.cs
- HtmlHead.cs
- CustomBindingElementCollection.cs
- SqlClientPermission.cs
- EntityRecordInfo.cs
- DataObject.cs
- TextInfo.cs
- GregorianCalendarHelper.cs
- InternalConfigConfigurationFactory.cs
- VoiceSynthesis.cs
- DataRecordObjectView.cs
- SettingsPropertyIsReadOnlyException.cs
- documentsequencetextpointer.cs
- DoubleUtil.cs
- FastEncoderStatics.cs
- OperationSelectorBehavior.cs
- CultureSpecificStringDictionary.cs
- SerializableReadOnlyDictionary.cs
- RuntimeCompatibilityAttribute.cs
- NavigatorOutput.cs
- DateBoldEvent.cs
- IfJoinedCondition.cs
- ErrorStyle.cs
- ObjectMemberMapping.cs
- Dump.cs
- SqlBulkCopyColumnMapping.cs
- messageonlyhwndwrapper.cs
- SqlDataSourceStatusEventArgs.cs
- TypeTypeConverter.cs
- EventLogPermissionEntry.cs
- CookieHandler.cs
- Size3D.cs
- ShaperBuffers.cs
- ContentElement.cs
- InputBuffer.cs
- DBSchemaTable.cs
- ParameterCollection.cs
- DetailsViewDeletedEventArgs.cs
- QuotedPrintableStream.cs
- StaticExtensionConverter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- Rotation3D.cs
- OutgoingWebRequestContext.cs
- TreeIterators.cs
- MailWebEventProvider.cs
- ThreadExceptionDialog.cs
- InvalidWMPVersionException.cs
- RequestCachingSection.cs
- GregorianCalendarHelper.cs
- StorageEntityContainerMapping.cs
- MessageSecurityOverHttp.cs
- AlphaSortedEnumConverter.cs
- UnorderedHashRepartitionStream.cs
- IProvider.cs
- FontFamily.cs
- SchemaObjectWriter.cs
- RtfToXamlLexer.cs
- UseAttributeSetsAction.cs
- LicenseManager.cs
- BamlBinaryWriter.cs
- WpfKnownMember.cs
- ChoiceConverter.cs
- ViewService.cs
- MachineKeySection.cs
- XmlTypeAttribute.cs
- EditCommandColumn.cs
- LineServicesRun.cs
- CompilationUnit.cs
- XmlElement.cs
- PropertyChange.cs
- BitVector32.cs
- MatrixTransform3D.cs
- ConnectionString.cs
- MulticastOption.cs
- MetabaseReader.cs
- SchemaInfo.cs
- FixedHighlight.cs