54 lines
2.7 KiB
C#
54 lines
2.7 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when a feature does not run on a particular platform.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020006A0 RID: 1696
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class PlatformNotSupportedException : NotSupportedException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.PlatformNotSupportedException" /> class with default properties.</summary>
|
|
// Token: 0x06004068 RID: 16488 RVA: 0x000DB92C File Offset: 0x000D9B2C
|
|
public PlatformNotSupportedException()
|
|
: base(Locale.GetText("This platform is not supported."))
|
|
{
|
|
base.HResult = -2146233031;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.PlatformNotSupportedException" /> class with a specified error message.</summary>
|
|
/// <param name="message">The text message that explains the reason for the exception. </param>
|
|
// Token: 0x06004069 RID: 16489 RVA: 0x000DB94C File Offset: 0x000D9B4C
|
|
public PlatformNotSupportedException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146233031;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.PlatformNotSupportedException" /> class with serialized data.</summary>
|
|
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
|
|
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
|
|
// Token: 0x0600406A RID: 16490 RVA: 0x000DB960 File Offset: 0x000D9B60
|
|
protected PlatformNotSupportedException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.PlatformNotSupportedException" /> 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: 0x0600406B RID: 16491 RVA: 0x000DB96C File Offset: 0x000D9B6C
|
|
public PlatformNotSupportedException(string message, Exception inner)
|
|
: base(message, inner)
|
|
{
|
|
base.HResult = -2146233031;
|
|
}
|
|
|
|
// Token: 0x0400199F RID: 6559
|
|
private const int Result = -2146233031;
|
|
}
|
|
}
|