Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PropertyFilterAttribute.cs
- FontSizeConverter.cs
- OleDbParameter.cs
- LabelLiteral.cs
- ScrollEvent.cs
- ItemChangedEventArgs.cs
- CommandDevice.cs
- WindowInteractionStateTracker.cs
- BitmapInitialize.cs
- MimeFormReflector.cs
- FileNameEditor.cs
- MemoryRecordBuffer.cs
- CallbackWrapper.cs
- VectorAnimationBase.cs
- DesignerActionListCollection.cs
- BatchParser.cs
- TrackingMemoryStreamFactory.cs
- NavigationProperty.cs
- IsolatedStorageException.cs
- StandardCommands.cs
- BrowserDefinitionCollection.cs
- CodeGotoStatement.cs
- InvokeBinder.cs
- TextRunProperties.cs
- DesignerSerializationVisibilityAttribute.cs
- PrintPreviewControl.cs
- EventListener.cs
- Border.cs
- DiscardableAttribute.cs
- SafeHandle.cs
- RawStylusInputCustomDataList.cs
- XmlUtf8RawTextWriter.cs
- ExtentJoinTreeNode.cs
- MemberInfoSerializationHolder.cs
- RowCache.cs
- WindowsFormsSynchronizationContext.cs
- ChtmlMobileTextWriter.cs
- GlobalizationAssembly.cs
- MenuScrollingVisibilityConverter.cs
- Hyperlink.cs
- PermissionRequestEvidence.cs
- TaiwanLunisolarCalendar.cs
- CancellableEnumerable.cs
- wgx_render.cs
- ComboBox.cs
- AsyncPostBackTrigger.cs
- DesignTimeTemplateParser.cs
- NameService.cs
- AppliedDeviceFiltersEditor.cs
- XsdDateTime.cs
- InstanceNormalEvent.cs
- ListViewDataItem.cs
- ErrorStyle.cs
- ExitEventArgs.cs
- ConnectionStringsExpressionBuilder.cs
- SHA512.cs
- HttpProtocolReflector.cs
- DbQueryCommandTree.cs
- WeakReferenceEnumerator.cs
- WebHttpBindingElement.cs
- WebPartCatalogCloseVerb.cs
- QilSortKey.cs
- AuthenticationSection.cs
- OleAutBinder.cs
- HandlerFactoryCache.cs
- InlineObject.cs
- OrderedDictionary.cs
- COM2IPerPropertyBrowsingHandler.cs
- NativeMethods.cs
- baseaxisquery.cs
- SqlMetaData.cs
- CompiledIdentityConstraint.cs
- PropertyNames.cs
- TcpConnectionPoolSettings.cs
- RoutedEventHandlerInfo.cs
- DivideByZeroException.cs
- Graph.cs
- Route.cs
- OneOfTypeConst.cs
- ObservableCollection.cs
- URLIdentityPermission.cs
- KeyEventArgs.cs
- Window.cs
- controlskin.cs
- X509Extension.cs
- ResourcePermissionBaseEntry.cs
- XPathNodeIterator.cs
- QueryableFilterRepeater.cs
- SystemSounds.cs
- HyperlinkAutomationPeer.cs
- Internal.cs
- ServiceMoniker.cs
- SmiMetaData.cs
- DatePickerDateValidationErrorEventArgs.cs
- CatalogZone.cs
- ConnectionStringsExpressionEditor.cs
- RowsCopiedEventArgs.cs
- GeneralEndpointIdentity.cs
- ParameterReplacerVisitor.cs
- MaterialGroup.cs