54 lines
2.6 KiB
C#
54 lines
2.6 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>The exception that is thrown by the marshaler when it encounters a <see cref="T:System.Runtime.InteropServices.MarshalAsAttribute" /> it does not support.</summary>
|
|
// Token: 0x02000330 RID: 816
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class MarshalDirectiveException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the MarshalDirectiveException class with default properties.</summary>
|
|
// Token: 0x060022EF RID: 8943 RVA: 0x0007A560 File Offset: 0x00078760
|
|
public MarshalDirectiveException()
|
|
: base(Locale.GetText("Unsupported MarshalAsAttribute found"))
|
|
{
|
|
base.HResult = -2146233035;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the MarshalDirectiveException class with a specified error message.</summary>
|
|
/// <param name="message">The error message that specifies the reason for the exception. </param>
|
|
// Token: 0x060022F0 RID: 8944 RVA: 0x0007A580 File Offset: 0x00078780
|
|
public MarshalDirectiveException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146233035;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.MarshalDirectiveException" /> 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: 0x060022F1 RID: 8945 RVA: 0x0007A594 File Offset: 0x00078794
|
|
public MarshalDirectiveException(string message, Exception inner)
|
|
: base(message, inner)
|
|
{
|
|
base.HResult = -2146233035;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the MarshalDirectiveException class from serialization 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>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is null. </exception>
|
|
// Token: 0x060022F2 RID: 8946 RVA: 0x0007A5AC File Offset: 0x000787AC
|
|
protected MarshalDirectiveException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x04000D6E RID: 3438
|
|
private const int ErrorCode = -2146233035;
|
|
}
|
|
}
|