48 lines
2.6 KiB
C#
48 lines
2.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Threading
|
|
{
|
|
/// <summary>The exception that is thrown when a <see cref="T:System.Threading.Thread" /> is in an invalid <see cref="P:System.Threading.Thread.ThreadState" /> for the method call.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x02000625 RID: 1573
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class ThreadStateException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException" /> class with default properties.</summary>
|
|
// Token: 0x060039C8 RID: 14792 RVA: 0x000C6424 File Offset: 0x000C4624
|
|
public ThreadStateException()
|
|
: base("Thread State Error")
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException" /> class with a specified error message.</summary>
|
|
/// <param name="message">The error message that explains the reason for the exception. </param>
|
|
// Token: 0x060039C9 RID: 14793 RVA: 0x000C6434 File Offset: 0x000C4634
|
|
public ThreadStateException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException" /> class with serialized data.</summary>
|
|
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
|
|
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
|
|
// Token: 0x060039CA RID: 14794 RVA: 0x000C6440 File Offset: 0x000C4640
|
|
protected ThreadStateException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Threading.ThreadStateException" /> 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: 0x060039CB RID: 14795 RVA: 0x000C644C File Offset: 0x000C464C
|
|
public ThreadStateException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|