73 lines
3.1 KiB
C#
73 lines
3.1 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions.</summary>
|
|
// Token: 0x02000311 RID: 785
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class ExternalException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the ExternalException class with default properties.</summary>
|
|
// Token: 0x060021F9 RID: 8697 RVA: 0x000794E0 File Offset: 0x000776E0
|
|
public ExternalException()
|
|
: base(Locale.GetText("External exception"))
|
|
{
|
|
base.HResult = -2147467259;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the ExternalException class with a specified error message.</summary>
|
|
/// <param name="message">The error message that specifies the reason for the exception. </param>
|
|
// Token: 0x060021FA RID: 8698 RVA: 0x00079500 File Offset: 0x00077700
|
|
public ExternalException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2147467259;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the ExternalException 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: 0x060021FB RID: 8699 RVA: 0x00079514 File Offset: 0x00077714
|
|
protected ExternalException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.ExternalException" /> 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: 0x060021FC RID: 8700 RVA: 0x00079520 File Offset: 0x00077720
|
|
public ExternalException(string message, Exception inner)
|
|
: base(message, inner)
|
|
{
|
|
base.HResult = -2147467259;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error.</summary>
|
|
/// <param name="message">The error message that specifies the reason for the exception. </param>
|
|
/// <param name="errorCode">The HRESULT of the error. </param>
|
|
// Token: 0x060021FD RID: 8701 RVA: 0x00079538 File Offset: 0x00077738
|
|
public ExternalException(string message, int errorCode)
|
|
: base(message)
|
|
{
|
|
base.HResult = errorCode;
|
|
}
|
|
|
|
/// <summary>Gets the HRESULT of the error.</summary>
|
|
/// <returns>The HRESULT of the error.</returns>
|
|
// Token: 0x1700064C RID: 1612
|
|
// (get) Token: 0x060021FE RID: 8702 RVA: 0x00079548 File Offset: 0x00077748
|
|
public virtual int ErrorCode
|
|
{
|
|
get
|
|
{
|
|
return base.HResult;
|
|
}
|
|
}
|
|
}
|
|
}
|