Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::AssertionFailureException Class Reference

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

#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/ThrowAssert.hpp>

+ Inheritance diagram for Acts::AssertionFailureException:
+ Collaboration diagram for Acts::AssertionFailureException:

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.
 

Private Attributes

std::string report
 

Detailed Description

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

Definition at line 18 of file ThrowAssert.hpp.

View newest version in sPHENIX GitHub at line 18 of file ThrowAssert.hpp

Constructor & Destructor Documentation

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

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

Definition at line 45 of file ThrowAssert.hpp.

View newest version in sPHENIX GitHub at line 45 of file ThrowAssert.hpp

References line, os, and report.

Member Function Documentation

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

The assertion message.

Definition at line 61 of file ThrowAssert.hpp.

View newest version in sPHENIX GitHub at line 61 of file ThrowAssert.hpp

References report.

Member Data Documentation

std::string Acts::AssertionFailureException::report
private

Definition at line 64 of file ThrowAssert.hpp.

View newest version in sPHENIX GitHub at line 64 of file ThrowAssert.hpp

Referenced by AssertionFailureException(), and what().


The documentation for this class was generated from the following file: