March 2002
Intermediate to advanced
864 pages
31h 8m
English
COMException
When a COM error occurs, .NET tries to map it to an exception in the .NET Framework, and throws that exception. If the COM error does not map to any exception in the .NET Framework, this exception is thrown instead. It’s the “couldn’t find an exception” exception.
public class COMException : ExternalException { // Public Constructors public method COMException(); public method COMException(string message); public method COMException(string message, Exception inner); public method COMException(string message, int errorCode); // Protected Constructors protected method COMException( System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context); // Public Instance Methods public override method string ToString(); // overrides Exception }
System.Object→System.Exception(System.Runtime.Serialization.ISerializable)→System.SystemException→ExternalException→COMException