Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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 } // 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); } 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
- HashCodeCombiner.cs
- SortedDictionary.cs
- TreeIterators.cs
- ChildDocumentBlock.cs
- BoolLiteral.cs
- Vector3DCollectionConverter.cs
- OletxEnlistment.cs
- StructuralType.cs
- ResourceDictionary.cs
- PriorityRange.cs
- ConnectionConsumerAttribute.cs
- TextBreakpoint.cs
- ClientTarget.cs
- ChameleonKey.cs
- OverlappedAsyncResult.cs
- XmlHierarchicalEnumerable.cs
- Pen.cs
- XmlSchemaObjectTable.cs
- FontConverter.cs
- CancelEventArgs.cs
- TransformValueSerializer.cs
- OletxTransactionHeader.cs
- MethodBuilderInstantiation.cs
- AssemblyAttributesGoHere.cs
- FixedSOMLineRanges.cs
- ValidatedControlConverter.cs
- SqlAliaser.cs
- Thickness.cs
- PersonalizationStateInfo.cs
- login.cs
- TableLayoutStyleCollection.cs
- XmlQueryOutput.cs
- String.cs
- TextLineBreak.cs
- SqlBuffer.cs
- CodeTypeOfExpression.cs
- GraphicsPath.cs
- DoubleConverter.cs
- WebHeaderCollection.cs
- CodeAttributeArgument.cs
- TreeViewCancelEvent.cs
- TableFieldsEditor.cs
- UpdateExpressionVisitor.cs
- MessageSmuggler.cs
- HttpCookiesSection.cs
- QueryOperatorEnumerator.cs
- OpenFileDialog.cs
- HWStack.cs
- WebHttpEndpointElement.cs
- WebBrowser.cs
- ToggleButton.cs
- BamlTreeMap.cs
- UInt16.cs
- XmlSchemaAttributeGroup.cs
- WebScriptMetadataMessageEncoderFactory.cs
- ConvertEvent.cs
- TextRange.cs
- Tablet.cs
- PerformanceCounterPermission.cs
- XmlSerializationReader.cs
- Lasso.cs
- List.cs
- Missing.cs
- TextTrailingWordEllipsis.cs
- PointLightBase.cs
- MappedMetaModel.cs
- CurrentTimeZone.cs
- Int64Storage.cs
- IntSecurity.cs
- DateTimeConverter2.cs
- WorkflowMarkupSerializationManager.cs
- RadioButton.cs
- FileDialog_Vista.cs
- MimeParameters.cs
- SQLBinaryStorage.cs
- SystemIPInterfaceStatistics.cs
- IDispatchConstantAttribute.cs
- ProviderUtil.cs
- WarningException.cs
- HwndProxyElementProvider.cs
- PlanCompilerUtil.cs
- EntityDataSourceQueryBuilder.cs
- LoginCancelEventArgs.cs
- ServiceModelSecurityTokenRequirement.cs
- CustomAttributeSerializer.cs
- SchemaDeclBase.cs
- DragDropHelper.cs
- WorkflowService.cs
- RenderCapability.cs
- StoreAnnotationsMap.cs
- FrameworkTextComposition.cs
- ThrowHelper.cs
- WindowsGraphicsCacheManager.cs
- AppSettingsExpressionEditor.cs
- Table.cs
- TypeGeneratedEventArgs.cs
- CharAnimationUsingKeyFrames.cs
- Axis.cs
- ContextMenuService.cs
- CompilationUnit.cs