Files
2026-06-04 11:42:34 +02:00

47 lines
2.3 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Reflection
{
/// <summary>Represents the exception that is thrown when an attempt is made to invoke an invalid target.</summary>
// Token: 0x0200026D RID: 621
[ComVisible(true)]
[Serializable]
public class TargetException : Exception
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetException" /> class with an empty message and the root cause of the exception.</summary>
// Token: 0x06001FEC RID: 8172 RVA: 0x000749D4 File Offset: 0x00072BD4
public TargetException()
: base(Locale.GetText("Unable to invoke an invalid target."))
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetException" /> class with the given message and the root cause exception.</summary>
/// <param name="message">A String describing the reason why the exception occurred. </param>
// Token: 0x06001FED RID: 8173 RVA: 0x000749E8 File Offset: 0x00072BE8
public TargetException(string message)
: base(message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetException" /> 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 null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06001FEE RID: 8174 RVA: 0x000749F4 File Offset: 0x00072BF4
public TargetException(string message, Exception inner)
: base(message, inner)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetException" /> class with the specified serialization and context information.</summary>
/// <param name="info">The data for serializing or deserializing the object. </param>
/// <param name="context">The source of and destination for the object. </param>
// Token: 0x06001FEF RID: 8175 RVA: 0x00074A00 File Offset: 0x00072C00
protected TargetException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}