using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown when a method call is invalid for the object's current state.
/// 2
// Token: 0x0200067B RID: 1659
[ComVisible(true)]
[Serializable]
public class InvalidOperationException : SystemException
{
/// Initializes a new instance of the class.
// Token: 0x06003EEA RID: 16106 RVA: 0x000D519C File Offset: 0x000D339C
public InvalidOperationException()
: base(Locale.GetText("Operation is not valid due to the current state of the object"))
{
base.HResult = -2146233079;
}
/// Initializes a new instance of the class with a specified error message.
/// The message that describes the error.
// Token: 0x06003EEB RID: 16107 RVA: 0x000D51BC File Offset: 0x000D33BC
public InvalidOperationException(string message)
: base(message)
{
base.HResult = -2146233079;
}
/// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception.
/// The error message that explains the reason for the exception.
/// The exception that is the cause of the current exception. If the parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception.
// Token: 0x06003EEC RID: 16108 RVA: 0x000D51D0 File Offset: 0x000D33D0
public InvalidOperationException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2146233079;
}
/// Initializes a new instance of the class with serialized data.
/// The object that holds the serialized object data.
/// The contextual information about the source or destination.
// Token: 0x06003EED RID: 16109 RVA: 0x000D51E8 File Offset: 0x000D33E8
protected InvalidOperationException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x0400191C RID: 6428
private const int Result = -2146233079;
}
}