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

37 lines
1.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.Reflection
{
/// <summary>The exception that is thrown by methods invoked through reflection. This class cannot be inherited.</summary>
// Token: 0x0200026E RID: 622
[ComVisible(true)]
[Serializable]
public sealed class TargetInvocationException : Exception
{
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetInvocationException" /> class with a reference to the inner exception that is the cause of this exception.</summary>
/// <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: 0x06001FF0 RID: 8176 RVA: 0x00074A0C File Offset: 0x00072C0C
public TargetInvocationException(Exception inner)
: base("Exception has been thrown by the target of an invocation.", inner)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetInvocationException" /> 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: 0x06001FF1 RID: 8177 RVA: 0x00074A1C File Offset: 0x00072C1C
public TargetInvocationException(string message, Exception inner)
: base(message, inner)
{
}
// Token: 0x06001FF2 RID: 8178 RVA: 0x00074A28 File Offset: 0x00072C28
internal TargetInvocationException(SerializationInfo info, StreamingContext sc)
: base(info, sc)
{
}
}
}