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