Class AssertionFailureException

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

  • public std::exception

Class Documentation

class Acts::AssertionFailureException : public std::exception

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

Public Functions

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

Construct an assertion failure exception, captures macro info.

Parameters
  • expression: The expression being asserted

  • file: The current file

  • line: The current line

  • msg: The message to print if assertion fails

const char *what() const override

The assertion message.

class StreamFormatter

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

Public Functions

template<typename T>
StreamFormatter &operator<<(const T &value)

Stream operator which takes everything and forwards it to the stringstream.

Template Parameters
  • T: type of anything

Parameters
  • value: const ref to anything