using System;
using System.Runtime.Serialization;
namespace System.Runtime.InteropServices
{
/// The exception that is thrown by the marshaler when it encounters a it does not support.
// Token: 0x02000330 RID: 816
[ComVisible(true)]
[Serializable]
public class MarshalDirectiveException : SystemException
{
/// Initializes a new instance of the MarshalDirectiveException class with default properties.
// Token: 0x060022EF RID: 8943 RVA: 0x0007A560 File Offset: 0x00078760
public MarshalDirectiveException()
: base(Locale.GetText("Unsupported MarshalAsAttribute found"))
{
base.HResult = -2146233035;
}
/// Initializes a new instance of the MarshalDirectiveException class with a specified error message.
/// The error message that specifies the reason for the exception.
// Token: 0x060022F0 RID: 8944 RVA: 0x0007A580 File Offset: 0x00078780
public MarshalDirectiveException(string message)
: base(message)
{
base.HResult = -2146233035;
}
/// 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: 0x060022F1 RID: 8945 RVA: 0x0007A594 File Offset: 0x00078794
public MarshalDirectiveException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233035;
}
/// Initializes a new instance of the MarshalDirectiveException class from serialization data.
/// The object that holds the serialized object data.
/// The contextual information about the source or destination.
///
/// is null.
// 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;
}
}