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