using System;
using System.Runtime.Serialization;
namespace System.Runtime.InteropServices
{
/// The exception thrown when an invalid COM object is used.
// Token: 0x0200032A RID: 810
[ComVisible(true)]
[Serializable]
public class InvalidComObjectException : SystemException
{
/// Initializes an instance of the InvalidComObjectException with default properties.
// Token: 0x0600223B RID: 8763 RVA: 0x000797E0 File Offset: 0x000779E0
public InvalidComObjectException()
: base(Locale.GetText("Invalid COM object is used"))
{
base.HResult = -2146233049;
}
/// Initializes an instance of the InvalidComObjectException with a message.
/// The message that indicates the reason for the exception.
// Token: 0x0600223C RID: 8764 RVA: 0x00079800 File Offset: 0x00077A00
public InvalidComObjectException(string message)
: base(message)
{
base.HResult = -2146233049;
}
/// 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 null, the current exception is raised in a catch block that handles the inner exception.
// Token: 0x0600223D RID: 8765 RVA: 0x00079814 File Offset: 0x00077A14
public InvalidComObjectException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233049;
}
/// Initializes a new instance of the COMException class from serialization data.
/// The object that holds the serialized object data.
/// The contextual information about the source or destination.
///
/// is null.
// Token: 0x0600223E RID: 8766 RVA: 0x0007982C File Offset: 0x00077A2C
protected InvalidComObjectException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x04000D60 RID: 3424
private const int ErrorCode = -2146233049;
}
}