Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / RemotingException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- ScrollData.cs
- StorageBasedPackageProperties.cs
- PackWebRequest.cs
- ArraySortHelper.cs
- Site.cs
- QueryCacheKey.cs
- ControlIdConverter.cs
- MimeMultiPart.cs
- SpecialNameAttribute.cs
- DataListAutoFormat.cs
- _FtpControlStream.cs
- MultiTrigger.cs
- ManagementDateTime.cs
- ComponentRenameEvent.cs
- FixUpCollection.cs
- Span.cs
- ResXDataNode.cs
- WebEvents.cs
- PerformanceCounterPermissionAttribute.cs
- EncoderExceptionFallback.cs
- ThicknessKeyFrameCollection.cs
- ConstantExpression.cs
- QilSortKey.cs
- BuildTopDownAttribute.cs
- PostBackOptions.cs
- EngineSite.cs
- CodeTypeReference.cs
- LineBreak.cs
- PointConverter.cs
- ResourceExpressionEditor.cs
- SctClaimSerializer.cs
- DeviceContext2.cs
- WebScriptClientGenerator.cs
- RemotingSurrogateSelector.cs
- KeyedCollection.cs
- ContractListAdapter.cs
- ProvidePropertyAttribute.cs
- HitTestFilterBehavior.cs
- WebConfigurationManager.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- ServiceDescriptionContext.cs
- ControlCachePolicy.cs
- DataGridItemAutomationPeer.cs
- LockingPersistenceProvider.cs
- TypeSystem.cs
- PolicyStatement.cs
- NumberFunctions.cs
- RequestTimeoutManager.cs
- DocumentGridContextMenu.cs
- CryptoApi.cs
- BitmapCodecInfo.cs
- WebPartCatalogCloseVerb.cs
- PersistenceTask.cs
- CounterCreationData.cs
- Block.cs
- SqlDataRecord.cs
- ObjectSpanRewriter.cs
- DisposableCollectionWrapper.cs
- PieceNameHelper.cs
- DateTimeSerializationSection.cs
- TextReader.cs
- Listen.cs
- Evidence.cs
- XmlText.cs
- Calendar.cs
- DataGridViewCellCancelEventArgs.cs
- StyleXamlParser.cs
- ReflectionTypeLoadException.cs
- SelectQueryOperator.cs
- MetadataArtifactLoaderCompositeFile.cs
- CodeMemberProperty.cs
- PageSettings.cs
- XhtmlTextWriter.cs
- SelectorItemAutomationPeer.cs
- SizeConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- DbConnectionFactory.cs
- ElementHostAutomationPeer.cs
- DefaultValidator.cs
- ClockGroup.cs
- TextParentUndoUnit.cs
- TextPointerBase.cs
- LogPolicy.cs
- PriorityBindingExpression.cs
- __ConsoleStream.cs
- WindowsServiceCredential.cs
- ErrorInfoXmlDocument.cs
- ClientApiGenerator.cs
- ResourceDescriptionAttribute.cs
- AtomContentProperty.cs
- ProfilePropertySettingsCollection.cs
- DataObject.cs
- ReliableChannelFactory.cs
- IProvider.cs
- TextTreeDeleteContentUndoUnit.cs
- TypeValidationEventArgs.cs
- ActivityCodeGenerator.cs
- AssemblyName.cs
- ProfileProvider.cs
- LOSFormatter.cs