|
//------------------------------------------------------------------------------
// <copyright file="InvalidAsynchronousStateException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Globalization;
using System.Runtime.Serialization;
using System.Security.Permissions;
/// <devdoc>
/// <para>The exception that is thrown when a thread that an operation should execute on no longer exists or is not pumping messages</para>
/// </devdoc>
[HostProtection(SharedState = true)]
[Serializable]
public class InvalidAsynchronousStateException : ArgumentException {
/// <devdoc>
/// <para>Initializes a new instance of the <see cref='System.ComponentModel.InvalidAsynchronousStateException'/> class without a message.</para>
/// </devdoc>
public InvalidAsynchronousStateException() : this(null) {
}
/// <devdoc>
/// <para>Initializes a new instance of the <see cref='System.ComponentModel.InvalidAsynchronousStateException'/> class with
/// the specified message.</para>
/// </devdoc>
public InvalidAsynchronousStateException(string message)
: base(message) {
}
/// <devdoc>
/// Initializes a new instance of the Exception class with a specified error message and a
/// reference to the inner exception that is the cause of this exception.
/// </devdoc>
public InvalidAsynchronousStateException(string message, Exception innerException )
: base(message, innerException) {
}
/// <devdoc>
/// Need this constructor since Exception implements ISerializable. We don't have any fields,
/// so just forward this to base.
/// </devdoc>
protected InvalidAsynchronousStateException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
|