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
- SqlTriggerAttribute.cs
- Viewport3DVisual.cs
- StandardBindingOptionalReliableSessionElement.cs
- WebProxyScriptElement.cs
- FirstQueryOperator.cs
- ResXResourceSet.cs
- ExpressionConverter.cs
- XmlDocumentSerializer.cs
- DataRelationCollection.cs
- sitestring.cs
- QueueSurrogate.cs
- CounterCreationData.cs
- EncryptedPackage.cs
- ClearTypeHintValidation.cs
- PowerModeChangedEventArgs.cs
- EdmSchemaAttribute.cs
- CompositeScriptReferenceEventArgs.cs
- InstanceData.cs
- MediaScriptCommandRoutedEventArgs.cs
- StylusPointPropertyInfo.cs
- CssTextWriter.cs
- _FixedSizeReader.cs
- DefaultValueConverter.cs
- EdgeProfileValidation.cs
- RegexCharClass.cs
- ComplexTypeEmitter.cs
- MimeTypeMapper.cs
- PaperSize.cs
- HttpPostedFile.cs
- ResourceKey.cs
- WorkflowApplicationTerminatedException.cs
- NGCSerializationManager.cs
- SystemIPv4InterfaceProperties.cs
- TextSelectionProcessor.cs
- Invariant.cs
- Helpers.cs
- RpcCryptoRequest.cs
- DefaultMemberAttribute.cs
- ZipQueryOperator.cs
- UniqueConstraint.cs
- Schema.cs
- HtmlControlAdapter.cs
- RegexTree.cs
- Parser.cs
- UserNameSecurityTokenParameters.cs
- DataColumnMapping.cs
- CharacterString.cs
- IntegerValidatorAttribute.cs
- CodeIndexerExpression.cs
- SessionStateModule.cs
- DataColumnMappingCollection.cs
- IriParsingElement.cs
- InputMethodStateChangeEventArgs.cs
- RewritingValidator.cs
- PresentationSource.cs
- ToolStripContentPanel.cs
- RenderData.cs
- DispatcherTimer.cs
- BlurBitmapEffect.cs
- XamlWriter.cs
- ImportContext.cs
- BaseDataBoundControl.cs
- ShaperBuffers.cs
- smtppermission.cs
- ObjectReaderCompiler.cs
- XmlQueryType.cs
- ReceiveContextCollection.cs
- XmlSchemaSet.cs
- RoutedEvent.cs
- XmlnsCache.cs
- SingleObjectCollection.cs
- OneOf.cs
- ModelChangedEventArgsImpl.cs
- TemplatePropertyEntry.cs
- SqlWriter.cs
- ProviderCommandInfoUtils.cs
- BoundColumn.cs
- ExceptionNotification.cs
- CultureMapper.cs
- EmbossBitmapEffect.cs
- TrackBar.cs
- BinHexEncoder.cs
- WebPartHeaderCloseVerb.cs
- _ConnectOverlappedAsyncResult.cs
- MethodExpr.cs
- DataMemberListEditor.cs
- ProfileSettingsCollection.cs
- SqlUserDefinedTypeAttribute.cs
- WebBodyFormatMessageProperty.cs
- JsonEnumDataContract.cs
- DataGridViewBand.cs
- LassoSelectionBehavior.cs
- ListMarkerSourceInfo.cs
- InputReferenceExpression.cs
- CollectionTypeElement.cs
- ILGenerator.cs
- WorkflowInstanceProxy.cs
- FormViewUpdateEventArgs.cs
- IgnoreSectionHandler.cs
- SystemIPInterfaceStatistics.cs