You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
367 B
C#
18 lines
367 B
C#
namespace OPC.Common
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
internal class ComException : ApplicationException
|
|
{
|
|
internal int Error;
|
|
|
|
internal ComException(Exception e, string message) : base(message, e)
|
|
{
|
|
this.Error = 0;
|
|
this.Error = Marshal.GetHRForException(e);
|
|
}
|
|
}
|
|
}
|
|
|