ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::AssertionFailureException Class Reference

Exception type for assertion failures This class captures the information available to the throw_assert macro. More...

#include <Acts/Utilities/ThrowAssert.hpp>

Inheritance diagram for Acts::AssertionFailureException:
[legend]
Collaboration diagram for Acts::AssertionFailureException:
[legend]

Classes

class  StreamFormatter
 Class which allows to use the << operator to assemble a string. More...

Public Member Functions

 AssertionFailureException (const std::string &expression, const std::string &file, int line, const std::string &msg)
 Construct an assertion failure exception, captures macro info.
const char * what () const override throw ()
 The assertion message.

Detailed Description

Exception type for assertion failures This class captures the information available to the throw_assert macro.

Constructor & Destructor Documentation

◆ AssertionFailureException()

Acts::AssertionFailureException::AssertionFailureException ( const std::string & expression,
const std::string & file,
int line,
const std::string & msg )

Construct an assertion failure exception, captures macro info.

Parameters
expressionThe expression being asserted
fileThe current file
lineThe current line
msgThe message to print if assertion fails

Member Function Documentation

◆ what()

const char * Acts::AssertionFailureException::what ( ) const
throw ( )
override

The assertion message.

Returns
C-string containing the assertion failure message