Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TypeSystem.cs
- PartialTrustHelpers.cs
- ListBoxChrome.cs
- TextElementAutomationPeer.cs
- FindResponse.cs
- Simplifier.cs
- SapiRecognizer.cs
- ExpressionDumper.cs
- PreProcessInputEventArgs.cs
- Pair.cs
- CipherData.cs
- MatrixKeyFrameCollection.cs
- ViewManager.cs
- TimersDescriptionAttribute.cs
- RegionIterator.cs
- AmbientValueAttribute.cs
- _NestedSingleAsyncResult.cs
- ValidationErrorEventArgs.cs
- WebHostScriptMappingsInstallComponent.cs
- _SslStream.cs
- Pair.cs
- _Connection.cs
- UpdateExpressionVisitor.cs
- SettingsContext.cs
- AuthenticationException.cs
- PointF.cs
- NativeRecognizer.cs
- WebPartExportVerb.cs
- EndOfStreamException.cs
- Span.cs
- SelectorItemAutomationPeer.cs
- _DomainName.cs
- ValueUnavailableException.cs
- SqlNodeAnnotations.cs
- PeerApplicationLaunchInfo.cs
- RawMouseInputReport.cs
- EditorPartCollection.cs
- BaseServiceProvider.cs
- QueryOutputWriter.cs
- ByteAnimationUsingKeyFrames.cs
- DesignerAutoFormatCollection.cs
- SimpleBitVector32.cs
- PropertyEmitterBase.cs
- LassoHelper.cs
- DataGridViewElement.cs
- GridViewSortEventArgs.cs
- SelectionList.cs
- WmlControlAdapter.cs
- NamedPipeConnectionPool.cs
- TimeManager.cs
- NamespaceList.cs
- AssociationEndMember.cs
- SecUtil.cs
- ScrollViewer.cs
- RenameRuleObjectDialog.cs
- __FastResourceComparer.cs
- ScrollProperties.cs
- ReadOnlyTernaryTree.cs
- SQLCharsStorage.cs
- PreservationFileWriter.cs
- ValidatedControlConverter.cs
- counter.cs
- SecurityState.cs
- CheckBoxPopupAdapter.cs
- UpdateCommand.cs
- BinHexDecoder.cs
- ConnectionInterfaceCollection.cs
- AutomationInteropProvider.cs
- PixelFormatConverter.cs
- LocalBuilder.cs
- AutomationPropertyChangedEventArgs.cs
- ReverseInheritProperty.cs
- StateWorkerRequest.cs
- RightsManagementSuppressedStream.cs
- PlainXmlWriter.cs
- ValueTypeFixupInfo.cs
- TreeViewCancelEvent.cs
- ToolstripProfessionalRenderer.cs
- MLangCodePageEncoding.cs
- COM2ExtendedUITypeEditor.cs
- SQLBinary.cs
- Marshal.cs
- AuthorizationSection.cs
- HtmlContainerControl.cs
- RankException.cs
- BeginStoryboard.cs
- CounterSample.cs
- FieldNameLookup.cs
- FieldMetadata.cs
- DataGridState.cs
- CultureInfoConverter.cs
- DecimalConverter.cs
- AutomationInteropProvider.cs
- TranslateTransform.cs
- DPTypeDescriptorContext.cs
- ServiceObjectContainer.cs
- TextUtf8RawTextWriter.cs
- BaseProcessor.cs
- XPathNodeIterator.cs
- GridViewCancelEditEventArgs.cs