+++
title = "`bool has_failure() const noexcept`"
description = "Returns true if there is either an error or an exception. Constexpr, never throws."
categories = ["observers"]
weight = 595
+++

Returns true if there is either an error or an exception. Constexpr where possible.

*Requires*: Always available.

*Complexity*: Constant time.

*Guarantees*: Never throws an exception.
