Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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 }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImageCollectionCodeDomSerializer.cs
- Double.cs
- Control.cs
- StorageInfo.cs
- HealthMonitoringSectionHelper.cs
- FormatVersion.cs
- LabelDesigner.cs
- SerializationUtility.cs
- GridViewSelectEventArgs.cs
- WorkflowTimerService.cs
- NetworkAddressChange.cs
- StringCollection.cs
- Resources.Designer.cs
- CharacterShapingProperties.cs
- ExpressionEditorAttribute.cs
- Compiler.cs
- EventSinkHelperWriter.cs
- DataRecordInfo.cs
- WindowInteractionStateTracker.cs
- DoubleCollectionValueSerializer.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- HtmlLink.cs
- Oid.cs
- ColumnPropertiesGroup.cs
- MSHTMLHostUtil.cs
- Avt.cs
- InvokeGenerator.cs
- _LoggingObject.cs
- DecoderBestFitFallback.cs
- TablePattern.cs
- SignatureToken.cs
- hwndwrapper.cs
- TreeView.cs
- WizardStepBase.cs
- KoreanCalendar.cs
- DispatcherSynchronizationContext.cs
- CodeStatement.cs
- NetworkInformationPermission.cs
- ResourceProviderFactory.cs
- GetWinFXPath.cs
- FontDialog.cs
- SystemColors.cs
- SamlAttribute.cs
- ServiceHostFactory.cs
- InstanceKeyView.cs
- WebServiceMethodData.cs
- PresentationSource.cs
- TemplateInstanceAttribute.cs
- TextWriterEngine.cs
- MultipleViewProviderWrapper.cs
- LoginDesignerUtil.cs
- OdbcConnectionOpen.cs
- PathSegment.cs
- PolygonHotSpot.cs
- Encoding.cs
- JoinElimination.cs
- Image.cs
- LoginStatusDesigner.cs
- OpenFileDialog.cs
- serverconfig.cs
- SubtreeProcessor.cs
- CodeBlockBuilder.cs
- CssStyleCollection.cs
- CompModSwitches.cs
- PointCollectionConverter.cs
- DataGridTablesFactory.cs
- XmlEncodedRawTextWriter.cs
- TranslateTransform3D.cs
- DataGridViewCellParsingEventArgs.cs
- DataGridLinkButton.cs
- SignerInfo.cs
- EntityViewGenerationConstants.cs
- SchemaAttDef.cs
- HitTestFilterBehavior.cs
- FixedSOMGroup.cs
- ReaderWriterLock.cs
- HtmlString.cs
- ProgressBar.cs
- UpdateCompiler.cs
- ModelChangedEventArgsImpl.cs
- CodeObjectCreateExpression.cs
- OutOfProcStateClientManager.cs
- DataGridCaption.cs
- UITypeEditors.cs
- WCFServiceClientProxyGenerator.cs
- ReferenceEqualityComparer.cs
- Memoizer.cs
- PropertyIDSet.cs
- MsmqHostedTransportConfiguration.cs
- DesignerContextDescriptor.cs
- XmlComment.cs
- RawMouseInputReport.cs
- PathData.cs
- XmlSerializationGeneratedCode.cs
- AttributeAction.cs
- followingquery.cs
- TextElementEnumerator.cs
- JsonFormatReaderGenerator.cs
- GridViewUpdateEventArgs.cs
- RtfNavigator.cs