using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// The exception that is thrown when an attempt to marshal an object across a context boundary fails.
/// 2
// Token: 0x0200064D RID: 1613
[ComVisible(true)]
[Obsolete("this type is obsoleted in 2.0 profile")]
[Serializable]
public class ContextMarshalException : SystemException
{
/// Initializes a new instance of the class with default properties.
// Token: 0x06003BC3 RID: 15299 RVA: 0x000CB054 File Offset: 0x000C9254
public ContextMarshalException()
: base(Locale.GetText("Attempt to marshal and object across a context failed."))
{
base.HResult = -2146233084;
}
/// Initializes a new instance of the class with a specified error message.
/// The error message that explains the reason for the exception.
// Token: 0x06003BC4 RID: 15300 RVA: 0x000CB074 File Offset: 0x000C9274
public ContextMarshalException(string message)
: base(message)
{
base.HResult = -2146233084;
}
/// Initializes a new instance of the class with serialized data.
/// The that holds the serialized object data about the exception being thrown.
/// The that contains contextual information about the source or destination.
// Token: 0x06003BC5 RID: 15301 RVA: 0x000CB088 File Offset: 0x000C9288
protected ContextMarshalException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
/// 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: 0x06003BC6 RID: 15302 RVA: 0x000CB094 File Offset: 0x000C9294
public ContextMarshalException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2146233084;
}
// Token: 0x0400187D RID: 6269
private const int Result = -2146233084;
}
}