44 lines
2.2 KiB
C#
44 lines
2.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>The exception that is thrown when the number of parameters for an invocation does not match the number expected. This class cannot be inherited.</summary>
|
|
// Token: 0x0200026F RID: 623
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public sealed class TargetParameterCountException : Exception
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetParameterCountException" /> class with an empty message string and the root cause of the exception.</summary>
|
|
// Token: 0x06001FF3 RID: 8179 RVA: 0x00074A34 File Offset: 0x00072C34
|
|
public TargetParameterCountException()
|
|
: base(Locale.GetText("Number of parameter does not match expected count."))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetParameterCountException" /> class with its message string set to the given message and the root cause exception.</summary>
|
|
/// <param name="message">A String describing the reason this exception was thrown. </param>
|
|
// Token: 0x06001FF4 RID: 8180 RVA: 0x00074A48 File Offset: 0x00072C48
|
|
public TargetParameterCountException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.TargetParameterCountException" /> 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: 0x06001FF5 RID: 8181 RVA: 0x00074A54 File Offset: 0x00072C54
|
|
public TargetParameterCountException(string message, Exception inner)
|
|
: base(message, inner)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001FF6 RID: 8182 RVA: 0x00074A60 File Offset: 0x00072C60
|
|
internal TargetParameterCountException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
}
|
|
}
|