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 field that does not exist.
/// 2
// Token: 0x02000686 RID: 1670
[ComVisible(true)]
[Serializable]
public class MissingFieldException : MissingMemberException
{
/// Initializes a new instance of the class.
// Token: 0x06003F4C RID: 16204 RVA: 0x000D5D08 File Offset: 0x000D3F08
public MissingFieldException()
: base(Locale.GetText("Cannot find requested field."))
{
base.HResult = -2146233071;
}
/// Initializes a new instance of the class with a specified error message.
/// A that describes the error.
// Token: 0x06003F4D RID: 16205 RVA: 0x000D5D28 File Offset: 0x000D3F28
public MissingFieldException(string message)
: base(message)
{
base.HResult = -2146233071;
}
/// 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: 0x06003F4E RID: 16206 RVA: 0x000D5D3C File Offset: 0x000D3F3C
protected MissingFieldException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// 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: 0x06003F4F RID: 16207 RVA: 0x000D5D48 File Offset: 0x000D3F48
public MissingFieldException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233071;
}
/// Initializes a new instance of the class with the specified class name and field name.
/// The name of the class in which access to a nonexistent field was attempted.
/// The name of the field that cannot be accessed.
// Token: 0x06003F50 RID: 16208 RVA: 0x000D5D60 File Offset: 0x000D3F60
public MissingFieldException(string className, string fieldName)
: base(className, fieldName)
{
base.HResult = -2146233071;
}
/// Gets the text string showing the signature of the missing field, the class name, and the field name. This property is read-only.
/// The error message string.
/// 2
// Token: 0x17000BC2 RID: 3010
// (get) Token: 0x06003F51 RID: 16209 RVA: 0x000D5D78 File Offset: 0x000D3F78
public override string Message
{
get
{
if (this.ClassName == null)
{
return base.Message;
}
string text = Locale.GetText("Field '{0}.{1}' not found.");
return string.Format(text, this.ClassName, this.MemberName);
}
}
// Token: 0x04001931 RID: 6449
private const int Result = -2146233071;
}
}