The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::ReversedStatisticRange Class Reference

Exception indicating that the range of a StatisticInstance was reversed when it was accessed (probably caused by checkpointing) More...

#include <StatisticInstance.hpp>

Inheritance diagram for sparta::ReversedStatisticRange:
Collaboration diagram for sparta::ReversedStatisticRange:

Public Member Functions

 ReversedStatisticRange (const std::string &reason)
 Construct with a default string.
 
virtual ~ReversedStatisticRange () noexcept
 Destructor.
 
- Public Member Functions inherited from sparta::SpartaException
 SpartaException ()
 Construct a SpartaException object with empty reason.
 
 SpartaException (const std::string &reason)
 Construct a SpartaException object.
 
 SpartaException (const SpartaException &orig)
 Copy construct a SpartaException object.
 
virtual ~SpartaException () noexcept
 Destroy!
 
const char * what () const noexcept
 Overload from std::exception.
 
std::string backtrace () const noexcept
 Returns the backtrace at the time this exception was generated.
 
std::string rawReason () const
 Return the raw reason without file, line information.
 
template<class T >
SpartaExceptionoperator<< (const T &msg)
 Append additional information to the message.
 

Detailed Description

Exception indicating that the range of a StatisticInstance was reversed when it was accessed (probably caused by checkpointing)

Definition at line 38 of file StatisticInstance.hpp.

Constructor & Destructor Documentation

◆ ReversedStatisticRange()

sparta::ReversedStatisticRange::ReversedStatisticRange ( const std::string &  reason)
inlineexplicit

Construct with a default string.

Note
Stream insertion operator can be used to add more text to the reason.

Definition at line 47 of file StatisticInstance.hpp.

◆ ~ReversedStatisticRange()

virtual sparta::ReversedStatisticRange::~ReversedStatisticRange ( )
inlinevirtualnoexcept

Destructor.

Definition at line 54 of file StatisticInstance.hpp.


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