Partager via


JET (MFC)

Lève l'exception spécifiée.

THROW(exception_object_pointer )

Paramètres

  • exception_object_pointer
    Pointe vers un objet exception dérivé de CException.

Notes

THROW suspend l'exécution du programme, en passant le contrôle au bloc CATCH associé dans votre programme. Si vous n'avez pas spécifié le bloc CATCH, le contrôle est transmis à un module de la bibliothèque MFC qui envoie un message d'erreur et se termine.

Pour plus d'informations, consultez Gestion des exceptions.

Configuration requise

En-tête : afx.h

Voir aussi

Référence

THROW_LAST

ESSAI

CATCH

AND_CATCH

END_CATCH

CATCH_ALL

AND_CATCH_ALL

END_CATCH_ALL

AfxThrowArchiveException

AfxThrowFileException

AfxThrowMemoryException

AfxThrowNotSupportedException

AfxThrowResourceException

AfxThrowUserException

Concepts

macro MFC et Globals