[uncaught.exceptions] # 17 Language support library [[support]](./#support) ## 17.9 Exception handling [[support.exception]](support.exception#uncaught.exceptions) ### 17.9.6 uncaught_exceptions [uncaught.exceptions] [🔗](#lib:uncaught_exceptions) `constexpr int uncaught_exceptions() noexcept; ` [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4102) *Returns*: The number of uncaught exceptions ([[except.throw]](except.throw "14.2 Throwing an exception")) in the current thread[.](#1.sentence-1) [2](#2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4106) *Remarks*: When uncaught_exceptions() > 0, throwing an exception can result in a call of the function[std​::​terminate](except.terminate "14.6.2 The std​::​terminate function [except.terminate]")[.](#2.sentence-1)