54 lines
2.5 KiB
C#
54 lines
2.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown in a thread upon cancellation of an operation that the thread was executing.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0200069C RID: 1692
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class OperationCanceledException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a system-supplied error message.</summary>
|
|
// Token: 0x0600405C RID: 16476 RVA: 0x000DB824 File Offset: 0x000D9A24
|
|
public OperationCanceledException()
|
|
: base(Locale.GetText("The operation was canceled."))
|
|
{
|
|
base.HResult = -2146233029;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message.</summary>
|
|
/// <param name="message">A <see cref="T:System.String" /> that describes the error.</param>
|
|
// Token: 0x0600405D RID: 16477 RVA: 0x000DB844 File Offset: 0x000D9A44
|
|
public OperationCanceledException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146233029;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
|
|
// Token: 0x0600405E RID: 16478 RVA: 0x000DB858 File Offset: 0x000D9A58
|
|
public OperationCanceledException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2146233029;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.OperationCanceledException" /> class with serialized data.</summary>
|
|
/// <param name="info">The object that holds the serialized object data. </param>
|
|
/// <param name="context">The contextual information about the source or destination. </param>
|
|
// Token: 0x0600405F RID: 16479 RVA: 0x000DB870 File Offset: 0x000D9A70
|
|
protected OperationCanceledException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001994 RID: 6548
|
|
private const int Result = -2146233029;
|
|
}
|
|
}
|