1 //------------------------------------------------------------------------------
2 // <copyright file="OperationAbortedException.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 // <owner current="true" primary="true">[....]</owner>
6 // <owner current="true" primary="false">[....]</owner>
7 //------------------------------------------------------------------------------
9 namespace System.Data {
13 using System.Data.Common;
14 using System.Diagnostics;
15 using System.Globalization;
16 using System.Runtime.Serialization;
19 public sealed class OperationAbortedException : SystemException {
20 private OperationAbortedException(string message, Exception innerException) : base(message, innerException) {
21 HResult = HResults.OperationAborted;
24 private OperationAbortedException(SerializationInfo si, StreamingContext sc) : base(si, sc) {
27 static internal OperationAbortedException Aborted(Exception inner) {
28 OperationAbortedException e;
30 e = new OperationAbortedException(Res.GetString(Res.ADP_OperationAborted), null);
33 e = new OperationAbortedException(Res.GetString(Res.ADP_OperationAbortedExceptionMessage), inner);
35 ADP.TraceExceptionAsReturnValue(e);