Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / IOException.cs / 1305376 / IOException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: IOException ** **[....] ** ** ** Purpose: Exception for a generic IO error. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class IOException : SystemException { // For debugging purposes, store the complete path in the IOException // if possible. Don't give it back to users due to security concerns. // Let the code that throws the exception worry about that. But we can // at least assist people attached to the process with a managed // debugger. Don't serialize it to avoid any security problems. // This information isn't guaranteed to be correct, but is our second // best effort at a file or directory involved, after the exception // message. [NonSerialized] private String _maybeFullPath; // For debuggers on partial trust code public IOException() : base(Environment.GetResourceString("Arg_IOException")) { SetErrorCode(__HResults.COR_E_IO); } public IOException(String message) : base(message) { SetErrorCode(__HResults.COR_E_IO); } public IOException(String message, int hresult) : base(message) { SetErrorCode(hresult); } // Adding this for debuggers when looking at exceptions in partial // trust code that may not have interesting path information in // the exception message. internal IOException(String message, int hresult, String maybeFullPath) : base(message) { SetErrorCode(hresult); _maybeFullPath = maybeFullPath; } public IOException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_IO); } [System.Security.SecuritySafeCritical] // auto-generated protected IOException(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
- _Win32.cs
- PageAsyncTask.cs
- Buffer.cs
- TableRow.cs
- XmlNodeComparer.cs
- SafeLibraryHandle.cs
- TabPanel.cs
- PagedDataSource.cs
- QuaternionAnimation.cs
- ValidationError.cs
- HierarchicalDataBoundControlAdapter.cs
- CfgSemanticTag.cs
- PagerSettings.cs
- Utils.cs
- TextStore.cs
- DropShadowBitmapEffect.cs
- ObjectListDataBindEventArgs.cs
- EdmProviderManifest.cs
- InputDevice.cs
- VisemeEventArgs.cs
- DataService.cs
- HierarchicalDataTemplate.cs
- SqlUtils.cs
- HealthMonitoringSectionHelper.cs
- IgnoreDataMemberAttribute.cs
- XhtmlBasicFormAdapter.cs
- CodeBinaryOperatorExpression.cs
- APCustomTypeDescriptor.cs
- XmlSerializerFactory.cs
- ReadOnlyNameValueCollection.cs
- Authorization.cs
- WebPartZoneBaseDesigner.cs
- DesignerVerbToolStripMenuItem.cs
- ChoiceConverter.cs
- TabControlToolboxItem.cs
- ListBox.cs
- RotateTransform3D.cs
- UnmanagedMarshal.cs
- CompoundFileStorageReference.cs
- SQLDateTime.cs
- HttpRequest.cs
- SkipStoryboardToFill.cs
- ListItemCollection.cs
- Codec.cs
- GridViewUpdatedEventArgs.cs
- _AutoWebProxyScriptWrapper.cs
- _NegoStream.cs
- DataGridItemCollection.cs
- DatatypeImplementation.cs
- CorrelationQueryBehavior.cs
- NativeMethods.cs
- EditorZone.cs
- ToolboxItemCollection.cs
- ListSourceHelper.cs
- MasterPageBuildProvider.cs
- ObjectCloneHelper.cs
- DeviceFiltersSection.cs
- NgenServicingAttributes.cs
- ClientSession.cs
- WindowCollection.cs
- CustomAttributeSerializer.cs
- AnnouncementService.cs
- ContextMenuStrip.cs
- XmlHierarchicalEnumerable.cs
- OleDbErrorCollection.cs
- Executor.cs
- RegexInterpreter.cs
- CompensateDesigner.cs
- DataGridViewRowPostPaintEventArgs.cs
- DeflateStreamAsyncResult.cs
- SafeCancelMibChangeNotify.cs
- WorkflowMarkupSerializationProvider.cs
- AbstractSvcMapFileLoader.cs
- ProviderIncompatibleException.cs
- ReadingWritingEntityEventArgs.cs
- DropSource.cs
- GridPatternIdentifiers.cs
- HttpResponse.cs
- ChildDocumentBlock.cs
- DataGridViewLayoutData.cs
- EventlogProvider.cs
- FontWeights.cs
- XmlSerializationReader.cs
- AttachmentService.cs
- StandardCommands.cs
- ReadOnlyDataSourceView.cs
- DataFormats.cs
- SqlDataSourceFilteringEventArgs.cs
- Visual3D.cs
- DocumentPageView.cs
- DynamicResourceExtension.cs
- OletxCommittableTransaction.cs
- designeractionlistschangedeventargs.cs
- ComplexTypeEmitter.cs
- BamlReader.cs
- Span.cs
- Int64Animation.cs
- CatalogPart.cs
- ThemeDirectoryCompiler.cs
- InstanceKey.cs