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
- IsolatedStorage.cs
- Token.cs
- BitmapEffectDrawing.cs
- PasswordDeriveBytes.cs
- PrintDialogException.cs
- DataGridViewComboBoxColumn.cs
- XmlSerializerSection.cs
- SpellerHighlightLayer.cs
- _SpnDictionary.cs
- FileRecordSequenceHelper.cs
- Facet.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlText.cs
- PointUtil.cs
- ReferenceService.cs
- AnnotationService.cs
- AdRotator.cs
- ItemChangedEventArgs.cs
- StaticTextPointer.cs
- DefaultBinder.cs
- SymbolMethod.cs
- DataServiceException.cs
- SrgsToken.cs
- StandardCommands.cs
- TemplateColumn.cs
- ContextMenuStripGroupCollection.cs
- ParallelTimeline.cs
- StylusButtonCollection.cs
- BinaryExpression.cs
- SqlFormatter.cs
- XmlAttributeProperties.cs
- GetWinFXPath.cs
- DragDeltaEventArgs.cs
- AssemblyAttributes.cs
- ZipIORawDataFileBlock.cs
- TraceInternal.cs
- WindowsFormsHelpers.cs
- CodeDomConfigurationHandler.cs
- FlowDocumentReaderAutomationPeer.cs
- ShaperBuffers.cs
- DataGridViewColumnConverter.cs
- ObjectConverter.cs
- PersistChildrenAttribute.cs
- DelegateSerializationHolder.cs
- DisplayNameAttribute.cs
- PkcsUtils.cs
- QueryPageSettingsEventArgs.cs
- Util.cs
- ListItemViewAttribute.cs
- RoutedEventConverter.cs
- FloaterBaseParagraph.cs
- TdsRecordBufferSetter.cs
- XmlExpressionDumper.cs
- NamedPipeConnectionPoolSettingsElement.cs
- CompoundFileStorageReference.cs
- SqlXml.cs
- ControlLocalizer.cs
- Int32Converter.cs
- EpmCustomContentWriterNodeData.cs
- PrintPreviewGraphics.cs
- DataGridViewCellEventArgs.cs
- CollectionChangeEventArgs.cs
- BaseTypeViewSchema.cs
- Condition.cs
- NullReferenceException.cs
- InputDevice.cs
- Attributes.cs
- TypeListConverter.cs
- Literal.cs
- TreeNodeClickEventArgs.cs
- ProfileSettingsCollection.cs
- ScrollBarAutomationPeer.cs
- ObjectDisposedException.cs
- SqlConnection.cs
- OleDbParameter.cs
- QilXmlWriter.cs
- Timer.cs
- rsa.cs
- WebSysDescriptionAttribute.cs
- VectorValueSerializer.cs
- LinearQuaternionKeyFrame.cs
- CommandDevice.cs
- ProcessHostServerConfig.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- RepeatButton.cs
- InvalidCastException.cs
- BitmapPalette.cs
- MouseGestureValueSerializer.cs
- DockProviderWrapper.cs
- WebContentFormatHelper.cs
- BitmapEffectInput.cs
- DirectoryRootQuery.cs
- ProfessionalColorTable.cs
- LiteralDesigner.cs
- FillErrorEventArgs.cs
- InteropBitmapSource.cs
- ValidationErrorInfo.cs
- SystemUnicastIPAddressInformation.cs
- XmlKeywords.cs
- CoTaskMemHandle.cs