Home | History | Annotate | Download | only in bits

Lines Matching refs:nested_exception

1 // Nested Exception support header (nested_exception class) for -*- C++ -*-
25 /** @file bits/nested_exception.h
55 class nested_exception
60 nested_exception() throw() : _M_ptr(current_exception()) { }
62 nested_exception(const nested_exception&) = default;
64 nested_exception& operator=(const nested_exception&) = default;
66 virtual ~nested_exception();
78 struct _Nested_exception : public _Except, public nested_exception
88 static const nested_exception*
90 { return dynamic_cast<const nested_exception*>(&__ex); }
96 static const nested_exception*
98 { return dynamic_cast<const nested_exception*>(__ex); }
102 inline const nested_exception*
108 __throw_with_nested(_Ex&&, const nested_exception* = 0)
117 // with a type that has an accessible nested_exception base.
120 __throw_with_nested(_Ex&& __ex, const nested_exception*)
132 /// If @p __ex is derived from nested_exception, @p __ex.
143 /// If @p __ex is derived from nested_exception, @p __ex.rethrow_nested().
148 if (const nested_exception* __nested = __get_nested_exception(__ex))
154 rethrow_if_nested(const nested_exception& __ex)