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
- HandleRef.cs
- Unit.cs
- WebPartsSection.cs
- HiddenFieldPageStatePersister.cs
- ObjectDataSource.cs
- XslAst.cs
- comcontractssection.cs
- WmlTextBoxAdapter.cs
- ZipIOLocalFileDataDescriptor.cs
- SqlCommandBuilder.cs
- DataViewSetting.cs
- TemplateColumn.cs
- IntegerValidator.cs
- _WinHttpWebProxyDataBuilder.cs
- HttpModuleCollection.cs
- TextEncodedRawTextWriter.cs
- SignedXml.cs
- CodeDomSerializationProvider.cs
- IMembershipProvider.cs
- XPathMessageContext.cs
- Rfc2898DeriveBytes.cs
- CollectionChange.cs
- WebHeaderCollection.cs
- listitem.cs
- CheckedPointers.cs
- _OverlappedAsyncResult.cs
- UserControlBuildProvider.cs
- ToolStripDropDownMenu.cs
- BamlResourceContent.cs
- SplineKeyFrames.cs
- RijndaelCryptoServiceProvider.cs
- FamilyMap.cs
- FontFamily.cs
- BitmapFrame.cs
- SqlCommandSet.cs
- XmlSchemaProviderAttribute.cs
- MinimizableAttributeTypeConverter.cs
- IndentedWriter.cs
- ServiceBusyException.cs
- DocumentationServerProtocol.cs
- ProfileBuildProvider.cs
- Random.cs
- DataContractSet.cs
- NegatedCellConstant.cs
- LogEntrySerializer.cs
- SqlDataSourceCache.cs
- ControlPropertyNameConverter.cs
- NullableDoubleAverageAggregationOperator.cs
- TextServicesHost.cs
- InfoCardProofToken.cs
- DefinitionBase.cs
- AsymmetricSignatureFormatter.cs
- Message.cs
- TextEditorTyping.cs
- WebPartDescription.cs
- DtrList.cs
- Italic.cs
- TemplateControl.cs
- ResponseBodyWriter.cs
- ColorContextHelper.cs
- PointAnimationClockResource.cs
- SByteStorage.cs
- ProcessInfo.cs
- Variant.cs
- ColorConvertedBitmapExtension.cs
- _StreamFramer.cs
- ProfileProvider.cs
- AccessDataSourceDesigner.cs
- InfoCardHelper.cs
- Select.cs
- MenuAdapter.cs
- TransactedBatchContext.cs
- FlowDocumentReader.cs
- WebPartConnection.cs
- Brushes.cs
- AnimatedTypeHelpers.cs
- AccessDataSource.cs
- Odbc32.cs
- TableLayoutCellPaintEventArgs.cs
- HttpListenerRequest.cs
- SecurityContext.cs
- SerializableAttribute.cs
- DataPagerFieldCollection.cs
- DataPagerFieldItem.cs
- AppendHelper.cs
- SelectedCellsCollection.cs
- TabletDeviceInfo.cs
- TableRowGroup.cs
- FontUnitConverter.cs
- PrintDialog.cs
- Pts.cs
- FactoryGenerator.cs
- SecurityRuntime.cs
- QilTypeChecker.cs
- StreamWithDictionary.cs
- PageThemeParser.cs
- PageBorderless.cs
- DynamicDocumentPaginator.cs
- OrElse.cs
- XmlAttributeCache.cs