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
- ComponentConverter.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ComponentResourceKey.cs
- StylusLogic.cs
- ExpressionEditorSheet.cs
- SignedPkcs7.cs
- ProjectedSlot.cs
- ISFClipboardData.cs
- DropSource.cs
- Normalization.cs
- UpDownEvent.cs
- OdbcInfoMessageEvent.cs
- FileDialogPermission.cs
- OutputWindow.cs
- MetaModel.cs
- Thread.cs
- CheckBoxStandardAdapter.cs
- OleDbConnection.cs
- AddressingVersion.cs
- SingleAnimationUsingKeyFrames.cs
- TypeConverterAttribute.cs
- SingleResultAttribute.cs
- ObjectIDGenerator.cs
- CodeValidator.cs
- MultiplexingFormatMapping.cs
- BinarySerializer.cs
- TypeResolvingOptionsAttribute.cs
- SessionStateUtil.cs
- SecurityHelper.cs
- PolyBezierSegmentFigureLogic.cs
- BufferBuilder.cs
- ViewgenGatekeeper.cs
- VirtualizedCellInfoCollection.cs
- SafeNativeMemoryHandle.cs
- PerformanceCounterCategory.cs
- ExpressionBindingCollection.cs
- OleDbMetaDataFactory.cs
- View.cs
- Cell.cs
- InternalRelationshipCollection.cs
- TransformerTypeCollection.cs
- EntityContainerRelationshipSetEnd.cs
- XmlCharType.cs
- PlainXmlDeserializer.cs
- RowType.cs
- LogWriteRestartAreaAsyncResult.cs
- CurrentTimeZone.cs
- DateTimeFormatInfo.cs
- UiaCoreApi.cs
- DataGridRowClipboardEventArgs.cs
- WebAdminConfigurationHelper.cs
- CheckedListBox.cs
- PasswordPropertyTextAttribute.cs
- ControlCollection.cs
- Profiler.cs
- InputLanguage.cs
- PermissionToken.cs
- BufferedWebEventProvider.cs
- ProcessHostFactoryHelper.cs
- SQLInt32Storage.cs
- PointAnimationClockResource.cs
- WebBrowserBase.cs
- RevocationPoint.cs
- EventLogEntryCollection.cs
- EntityKeyElement.cs
- EdmError.cs
- ReflectTypeDescriptionProvider.cs
- Attributes.cs
- FileDialog.cs
- DataTableCollection.cs
- FormsAuthenticationUserCollection.cs
- SystemIPv6InterfaceProperties.cs
- OrCondition.cs
- SoapServerMethod.cs
- DataSourceSelectArguments.cs
- XmlEntity.cs
- ListViewEditEventArgs.cs
- OleDbPropertySetGuid.cs
- EventRecord.cs
- EventSetter.cs
- SchemaTypeEmitter.cs
- BooleanAnimationBase.cs
- UnconditionalPolicy.cs
- FixedNode.cs
- XPathChildIterator.cs
- HttpConfigurationSystem.cs
- PeerCollaborationPermission.cs
- TableCell.cs
- HttpClientCertificate.cs
- FormViewModeEventArgs.cs
- MailMessageEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- NativeCppClassAttribute.cs
- XmlSortKeyAccumulator.cs
- RotateTransform3D.cs
- SmtpNegotiateAuthenticationModule.cs
- unsafenativemethodstextservices.cs
- InterleavedZipPartStream.cs
- AuthenticationSchemesHelper.cs
- WebSysDefaultValueAttribute.cs