Files
Dec2017-Script-Dump/mscorlib/System/MissingFieldException.cs
T
2026-06-04 11:42:34 +02:00

82 lines
3.6 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when there is an attempt to dynamically access a field that does not exist.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x02000686 RID: 1670
[ComVisible(true)]
[Serializable]
public class MissingFieldException : MissingMemberException
{
/// <summary>Initializes a new instance of the <see cref="T:System.MissingFieldException" /> class.</summary>
// Token: 0x06003F4C RID: 16204 RVA: 0x000D5D08 File Offset: 0x000D3F08
public MissingFieldException()
: base(Locale.GetText("Cannot find requested field."))
{
base.HResult = -2146233071;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingFieldException" /> class with a specified error message.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. </param>
// Token: 0x06003F4D RID: 16205 RVA: 0x000D5D28 File Offset: 0x000D3F28
public MissingFieldException(string message)
: base(message)
{
base.HResult = -2146233071;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingFieldException" /> class with serialized data.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
// Token: 0x06003F4E RID: 16206 RVA: 0x000D5D3C File Offset: 0x000D3F3C
protected MissingFieldException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingFieldException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06003F4F RID: 16207 RVA: 0x000D5D48 File Offset: 0x000D3F48
public MissingFieldException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233071;
}
/// <summary>Initializes a new instance of the <see cref="T:System.MissingFieldException" /> class with the specified class name and field name.</summary>
/// <param name="className">The name of the class in which access to a nonexistent field was attempted. </param>
/// <param name="fieldName">The name of the field that cannot be accessed. </param>
// Token: 0x06003F50 RID: 16208 RVA: 0x000D5D60 File Offset: 0x000D3F60
public MissingFieldException(string className, string fieldName)
: base(className, fieldName)
{
base.HResult = -2146233071;
}
/// <summary>Gets the text string showing the signature of the missing field, the class name, and the field name. This property is read-only.</summary>
/// <returns>The error message string.</returns>
/// <filterpriority>2</filterpriority>
// 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;
}
}