Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationException.cs / 1 / SerializationException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*==============================================================================
**
** Class: SerializationException
**
**
** Purpose: Thrown when something goes wrong during serialization or
** deserialization.
**
**
=============================================================================*/
namespace System.Runtime.Serialization {
using System;
using System.Runtime.Serialization;
[System.Runtime.InteropServices.ComVisible(true)]
[Serializable] public class SerializationException : SystemException {
private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException");
// Creates a new SerializationException with its message
// string set to a default message.
public SerializationException()
: base(_nullMessage) {
SetErrorCode(__HResults.COR_E_SERIALIZATION);
}
public SerializationException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_SERIALIZATION);
}
public SerializationException(String message, Exception innerException) : base (message, innerException) {
SetErrorCode(__HResults.COR_E_SERIALIZATION);
}
protected SerializationException(SerializationInfo info, StreamingContext context) : base (info, context) {
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootDesignerSerializerAttribute.cs
- FlowDecisionDesigner.xaml.cs
- FormsAuthenticationEventArgs.cs
- DataGridViewButtonCell.cs
- TraceSource.cs
- ObjectDataSourceDesigner.cs
- SerializeAbsoluteContext.cs
- ApplicationProxyInternal.cs
- ReadWriteControlDesigner.cs
- CompositeTypefaceMetrics.cs
- WebPartsPersonalizationAuthorization.cs
- contentDescriptor.cs
- ZipIOExtraFieldElement.cs
- PropertyInformation.cs
- ProfileEventArgs.cs
- BufferedReadStream.cs
- FilterEventArgs.cs
- BuildProvidersCompiler.cs
- RoleGroupCollectionEditor.cs
- DetailsViewModeEventArgs.cs
- CodeChecksumPragma.cs
- BasicExpressionVisitor.cs
- ComplexPropertyEntry.cs
- RC2.cs
- DataObjectPastingEventArgs.cs
- BamlBinaryWriter.cs
- TreeView.cs
- DBDataPermission.cs
- ConfigurationStrings.cs
- Propagator.cs
- JoinTreeSlot.cs
- XsltContext.cs
- XmlElementAttributes.cs
- SQLRoleProvider.cs
- UnmanagedMarshal.cs
- SqlCachedBuffer.cs
- ZipIOBlockManager.cs
- HtmlControlPersistable.cs
- BamlTreeNode.cs
- DataFormats.cs
- TrackingWorkflowEventArgs.cs
- SchemaTableOptionalColumn.cs
- ProgressBarAutomationPeer.cs
- CharEnumerator.cs
- TextTreeNode.cs
- FrameworkElement.cs
- GifBitmapEncoder.cs
- ChtmlImageAdapter.cs
- ThemeDictionaryExtension.cs
- QueuePathDialog.cs
- FixedSOMImage.cs
- httpserverutility.cs
- TimeSpanValidatorAttribute.cs
- ActivityExecutionWorkItem.cs
- RoleManagerModule.cs
- SafeCryptContextHandle.cs
- SymbolTable.cs
- DataTableNewRowEvent.cs
- SequenceFullException.cs
- TableLayoutColumnStyleCollection.cs
- WebProxyScriptElement.cs
- ISAPIApplicationHost.cs
- AgileSafeNativeMemoryHandle.cs
- JavaScriptString.cs
- GradientStop.cs
- ToolStripPanelCell.cs
- SatelliteContractVersionAttribute.cs
- DiscreteKeyFrames.cs
- TemplateControlBuildProvider.cs
- SHA512.cs
- HwndStylusInputProvider.cs
- XmlElementAttributes.cs
- PropertyMetadata.cs
- OutputCacheSection.cs
- Descriptor.cs
- DataKeyArray.cs
- Tile.cs
- ExpandableObjectConverter.cs
- ResourcePermissionBaseEntry.cs
- SamlNameIdentifierClaimResource.cs
- SrgsRule.cs
- TransformedBitmap.cs
- SR.cs
- WinInet.cs
- WindowsFormsSectionHandler.cs
- BitmapFrame.cs
- AssemblyAttributesGoHere.cs
- Version.cs
- ByteArrayHelperWithString.cs
- DesignerLoader.cs
- SerializableReadOnlyDictionary.cs
- RuntimeEnvironment.cs
- SerialErrors.cs
- DataGridTextColumn.cs
- FontUnit.cs
- PropertyDescriptor.cs
- ObjectKeyFrameCollection.cs
- NamedPipeAppDomainProtocolHandler.cs
- ObjectHelper.cs
- InnerItemCollectionView.cs