Code:
/ FX-1434 / FX-1434 / 1.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
- AddInProcess.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DynamicPropertyHolder.cs
- ManagedFilter.cs
- SafeEventLogWriteHandle.cs
- SchemaDeclBase.cs
- DrawingContextWalker.cs
- Logging.cs
- StringAttributeCollection.cs
- NetStream.cs
- CultureSpecificCharacterBufferRange.cs
- SqlCacheDependencyDatabase.cs
- SqlTypeConverter.cs
- SmiEventSink_DeferedProcessing.cs
- SelectedGridItemChangedEvent.cs
- XmlEncoding.cs
- UnsafeNativeMethods.cs
- FastEncoderWindow.cs
- Mutex.cs
- MailWebEventProvider.cs
- SurrogateEncoder.cs
- DataBindingHandlerAttribute.cs
- RoutedEventHandlerInfo.cs
- documentsequencetextcontainer.cs
- WebBrowserEvent.cs
- RangeEnumerable.cs
- DesignRelation.cs
- DynamicMethod.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- TableLayoutSettingsTypeConverter.cs
- LocalizableAttribute.cs
- DataServiceRequestOfT.cs
- ModelFunction.cs
- ConfigXmlElement.cs
- DbFunctionCommandTree.cs
- ReaderWriterLock.cs
- SchemaExporter.cs
- MenuItem.cs
- XamlRtfConverter.cs
- ListChunk.cs
- ConfigsHelper.cs
- PackWebRequest.cs
- Border.cs
- OSFeature.cs
- GridEntry.cs
- OdbcEnvironment.cs
- ActivityWithResultConverter.cs
- TextViewBase.cs
- BaseServiceProvider.cs
- PolyBezierSegment.cs
- ProfileService.cs
- ValidationErrorCollection.cs
- AutomationAttributeInfo.cs
- Policy.cs
- HtmlButton.cs
- XmlQueryContext.cs
- XhtmlBasicControlAdapter.cs
- GeometryConverter.cs
- DetailsViewPageEventArgs.cs
- CodeSubDirectoriesCollection.cs
- TailCallAnalyzer.cs
- ELinqQueryState.cs
- LinearGradientBrush.cs
- XmlException.cs
- ProxyHelper.cs
- PersonalizationState.cs
- DispatcherObject.cs
- EffectiveValueEntry.cs
- Tablet.cs
- EventsTab.cs
- PropertyTab.cs
- Block.cs
- StyleCollectionEditor.cs
- XmlCustomFormatter.cs
- DotExpr.cs
- XmlObjectSerializerContext.cs
- AssemblyAttributes.cs
- TransactionFilter.cs
- __Filters.cs
- ObjectQueryExecutionPlan.cs
- ObjectDataSourceSelectingEventArgs.cs
- ServerValidateEventArgs.cs
- File.cs
- XmlMemberMapping.cs
- WindowsToolbarItemAsMenuItem.cs
- FontResourceCache.cs
- ListBase.cs
- HttpAsyncResult.cs
- StatusBarDrawItemEvent.cs
- SafeFileMappingHandle.cs
- SevenBitStream.cs
- QuadraticBezierSegment.cs
- SqlStream.cs
- PDBReader.cs
- PrinterResolution.cs
- TransformedBitmap.cs
- SystemUnicastIPAddressInformation.cs
- ProjectedSlot.cs
- BorderSidesEditor.cs
- MimeWriter.cs