using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown for invalid casting or explicit conversion.
/// 1
// Token: 0x0200067A RID: 1658
[ComVisible(true)]
[Serializable]
public class InvalidCastException : SystemException
{
/// Initializes a new instance of the class.
// Token: 0x06003EE5 RID: 16101 RVA: 0x000D5134 File Offset: 0x000D3334
public InvalidCastException()
: base(Locale.GetText("Cannot cast from source type to destination type."))
{
base.HResult = -2147467262;
}
/// Initializes a new instance of the class with a specified error message.
/// The message that describes the error.
// Token: 0x06003EE6 RID: 16102 RVA: 0x000D5154 File Offset: 0x000D3354
public InvalidCastException(string message)
: base(message)
{
base.HResult = -2147467262;
}
/// 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: 0x06003EE7 RID: 16103 RVA: 0x000D5168 File Offset: 0x000D3368
public InvalidCastException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2147467262;
}
/// Initializes a new instance of the class with a specified message and error code.
/// The message that indicates the reason the exception occurred.
/// The error code (HRESULT) value associated with the exception.
// Token: 0x06003EE8 RID: 16104 RVA: 0x000D5180 File Offset: 0x000D3380
public InvalidCastException(string message, int errorCode)
: base(message)
{
base.HResult = errorCode;
}
/// 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: 0x06003EE9 RID: 16105 RVA: 0x000D5190 File Offset: 0x000D3390
protected InvalidCastException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x0400191B RID: 6427
private const int Result = -2147467262;
}
}