다음을 통해 공유


TRY

Sets up a TRY block.

TRY

설명

A TRY block identifies a block of code that might throw exceptions. Those exceptions are handled in the following CATCH and AND_CATCH blocks. Recursion is allowed: exceptions may be passed to an outer TRY block, either by ignoring them or by using the THROW_LAST macro. End the TRY block with an END_CATCH or END_CATCH_ALL macro.

For more information, see the article Exceptions.

예제

See the example for CATCH.

요구 사항

Header: afx.h

참고 항목

참조

CATCH

AND_CATCH

END_CATCH

CATCH_ALL

AND_CATCH_ALL

END_CATCH_ALL

THROW(MFC)

THROW_LAST

개념

MFC 매크로 및 전역