using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown when there is an attempt to dynamically access a class member that does not exist.
/// 2
// Token: 0x02000687 RID: 1671
[ComVisible(true)]
[Serializable]
public class MissingMemberException : MemberAccessException
{
/// Initializes a new instance of the class.
// Token: 0x06003F52 RID: 16210 RVA: 0x000D5DB4 File Offset: 0x000D3FB4
public MissingMemberException()
: base(Locale.GetText("Cannot find the requested class member."))
{
base.HResult = -2146233070;
}
/// Initializes a new instance of the class with a specified error message.
/// The message that describes the error.
// Token: 0x06003F53 RID: 16211 RVA: 0x000D5DD4 File Offset: 0x000D3FD4
public MissingMemberException(string message)
: base(message)
{
base.HResult = -2146233070;
}
/// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the root cause of this exception.
/// The error message that explains the reason for the exception.
/// An instance of that is the cause of the current Exception. If is not a null reference (Nothing in Visual Basic), then the current Exception is raised in a catch block handling .
// Token: 0x06003F54 RID: 16212 RVA: 0x000D5DE8 File Offset: 0x000D3FE8
public MissingMemberException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233070;
}
/// 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: 0x06003F55 RID: 16213 RVA: 0x000D5E00 File Offset: 0x000D4000
protected MissingMemberException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.ClassName = info.GetString("MMClassName");
this.MemberName = info.GetString("MMMemberName");
this.Signature = (byte[])info.GetValue("MMSignature", typeof(byte[]));
}
/// Initializes a new instance of the class with the specified class name and member name.
/// The name of the class in which access to a nonexistent member was attempted.
/// The name of the member that cannot be accessed.
// Token: 0x06003F56 RID: 16214 RVA: 0x000D5E58 File Offset: 0x000D4058
public MissingMemberException(string className, string memberName)
{
this.ClassName = className;
this.MemberName = memberName;
base.HResult = -2146233070;
}
/// Sets the object with the class name, the member name, the signature of the missing member, and additional exception information.
/// The object that holds the serialized object data.
/// The contextual information about the source or destination.
/// The object is null.
/// 2
///
///
///
// Token: 0x06003F57 RID: 16215 RVA: 0x000D5E7C File Offset: 0x000D407C
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("MMClassName", this.ClassName);
info.AddValue("MMMemberName", this.MemberName);
info.AddValue("MMSignature", this.Signature);
}
/// Gets the text string showing the class name, the member name, and the signature of the missing member.
/// The error message string.
/// 2
// Token: 0x17000BC3 RID: 3011
// (get) Token: 0x06003F58 RID: 16216 RVA: 0x000D5EC4 File Offset: 0x000D40C4
public override string Message
{
get
{
if (this.ClassName == null)
{
return base.Message;
}
string text = Locale.GetText("Member {0}.{1} not found.");
return string.Format(text, this.ClassName, this.MemberName);
}
}
// Token: 0x04001932 RID: 6450
private const int Result = -2146233070;
/// Holds the class name of the missing member.
// Token: 0x04001933 RID: 6451
protected string ClassName;
/// Holds the name of the missing member.
// Token: 0x04001934 RID: 6452
protected string MemberName;
/// Holds the signature of the missing member.
// Token: 0x04001935 RID: 6453
protected byte[] Signature;
}
}