Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / CallbackException.cs / 1305376 / CallbackException.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System;
using System.Runtime.Serialization;
[Serializable]
class CallbackException : FatalException
{
public CallbackException()
{
}
public CallbackException(string message, Exception innerException) : base(message, innerException)
{
// This can't throw something like ArgumentException because that would be worse than
// throwing the callback exception that was requested.
Fx.Assert(innerException != null, "CallbackException requires an inner exception.");
Fx.Assert(!Fx.IsFatal(innerException), "CallbackException can't be used to wrap fatal exceptions.");
}
protected CallbackException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.Runtime
{
using System;
using System.Runtime.Serialization;
[Serializable]
class CallbackException : FatalException
{
public CallbackException()
{
}
public CallbackException(string message, Exception innerException) : base(message, innerException)
{
// This can't throw something like ArgumentException because that would be worse than
// throwing the callback exception that was requested.
Fx.Assert(innerException != null, "CallbackException requires an inner exception.");
Fx.Assert(!Fx.IsFatal(innerException), "CallbackException can't be used to wrap fatal exceptions.");
}
protected CallbackException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
// 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
- EventLogConfiguration.cs
- CalculatedColumn.cs
- ToolStripItemRenderEventArgs.cs
- TypeElement.cs
- UTF8Encoding.cs
- ObjectTag.cs
- StateMachineWorkflow.cs
- CmsInterop.cs
- HttpServerProtocol.cs
- SubMenuStyleCollectionEditor.cs
- CommandDesigner.cs
- ComponentCodeDomSerializer.cs
- PackageProperties.cs
- OuterGlowBitmapEffect.cs
- BoolLiteral.cs
- OlePropertyStructs.cs
- ThreadExceptionDialog.cs
- PolyQuadraticBezierSegment.cs
- ScrollItemPatternIdentifiers.cs
- CategoryNameCollection.cs
- HelpKeywordAttribute.cs
- GC.cs
- ItemCheckedEvent.cs
- ToolStripSeparator.cs
- QueryComponents.cs
- XPathDocumentNavigator.cs
- CaseStatement.cs
- GeometryGroup.cs
- SqlGenericUtil.cs
- XPathNavigator.cs
- HitTestFilterBehavior.cs
- ClientProxyGenerator.cs
- FormViewRow.cs
- CrossContextChannel.cs
- Debug.cs
- CodeDOMUtility.cs
- RepeaterItemCollection.cs
- AsymmetricSignatureFormatter.cs
- LeaseManager.cs
- RuleSettings.cs
- Helpers.cs
- XmlCharType.cs
- PersianCalendar.cs
- BackStopAuthenticationModule.cs
- DefaultValidator.cs
- OSFeature.cs
- DataColumnSelectionConverter.cs
- MDIControlStrip.cs
- LinkedList.cs
- EmissiveMaterial.cs
- Int16AnimationBase.cs
- DebuggerService.cs
- RelationshipFixer.cs
- OperationValidationEventArgs.cs
- DateTimeParse.cs
- Console.cs
- TextSpanModifier.cs
- ProvideValueServiceProvider.cs
- GB18030Encoding.cs
- DataGridState.cs
- MatchingStyle.cs
- ReadOnlyCollection.cs
- SettingsPropertyValueCollection.cs
- Sql8ConformanceChecker.cs
- ProviderIncompatibleException.cs
- SqlDataSourceParameterParser.cs
- WasNotInstalledException.cs
- SoapAttributeOverrides.cs
- CodeObjectCreateExpression.cs
- Hex.cs
- DataTableMappingCollection.cs
- Material.cs
- Transform3D.cs
- GroupBoxRenderer.cs
- CopyNamespacesAction.cs
- MonitoringDescriptionAttribute.cs
- DbConnectionPoolCounters.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- XmlSchemaSimpleContentExtension.cs
- MatrixCamera.cs
- TextProperties.cs
- XmlnsDictionary.cs
- DataDocumentXPathNavigator.cs
- ToolStripDropDownItemDesigner.cs
- SByteConverter.cs
- arc.cs
- DateTimeFormat.cs
- BamlTreeMap.cs
- mansign.cs
- InputMethodStateChangeEventArgs.cs
- CompositeTypefaceMetrics.cs
- OracleRowUpdatingEventArgs.cs
- SoapHeaders.cs
- FeatureAttribute.cs
- ImageMap.cs
- InternalCache.cs
- AuthenticationConfig.cs
- EventWaitHandle.cs
- XPathNavigator.cs
- URI.cs