Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CAtlException Class
Collapse the table of content
Expand the table of content

CAtlException Class

This class defines an ATL exception.

class CAtlException

Name

Description

CAtlException::CAtlException

The constructor.

Name

Description

CAtlException::operator HRESULT

Casts the current object to an HRESULT value.

Name

Description

CAtlException::m_hr

The variable of type HRESULT created by the object and used to store the error condition.

A CAtlException object represents an exception condition related to an ATL operation. The CAtlException class includes a public data member that stores the status code indicating the reason for the exception and a cast operator that allows you to treat the exception as if it were an HRESULT.

In general, you will call AtlThrow rather than creating a CAtlException object directly.

Header: atlexcept.h

Reference

Other Resources

Show:
© 2015 Microsoft