using System; using System.Runtime.Serialization; namespace System.Runtime.InteropServices { /// The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions. // Token: 0x02000311 RID: 785 [ComVisible(true)] [Serializable] public class ExternalException : SystemException { /// Initializes a new instance of the ExternalException class with default properties. // Token: 0x060021F9 RID: 8697 RVA: 0x000794E0 File Offset: 0x000776E0 public ExternalException() : base(Locale.GetText("External exception")) { base.HResult = -2147467259; } /// Initializes a new instance of the ExternalException class with a specified error message. /// The error message that specifies the reason for the exception. // Token: 0x060021FA RID: 8698 RVA: 0x00079500 File Offset: 0x00077700 public ExternalException(string message) : base(message) { base.HResult = -2147467259; } /// Initializes a new instance of the ExternalException class from serialization data. /// The object that holds the serialized object data. /// The contextual information about the source or destination. /// /// is null. // Token: 0x060021FB RID: 8699 RVA: 0x00079514 File Offset: 0x00077714 protected ExternalException(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: 0x060021FC RID: 8700 RVA: 0x00079520 File Offset: 0x00077720 public ExternalException(string message, Exception inner) : base(message, inner) { base.HResult = -2147467259; } /// Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error. /// The error message that specifies the reason for the exception. /// The HRESULT of the error. // Token: 0x060021FD RID: 8701 RVA: 0x00079538 File Offset: 0x00077738 public ExternalException(string message, int errorCode) : base(message) { base.HResult = errorCode; } /// Gets the HRESULT of the error. /// The HRESULT of the error. // Token: 0x1700064C RID: 1612 // (get) Token: 0x060021FE RID: 8702 RVA: 0x00079548 File Offset: 0x00077748 public virtual int ErrorCode { get { return base.HResult; } } } }