Exception thrown when interruption occurs, e.g. user press ESC key.  
 More...
#include <baseexception.h>
|  | 
| BASE_EXPORT | InterruptException (bool safe, const string &state=string()) | 
|  | 
| BASE_EXPORT bool | wasSafe () const | 
|  | returns TRUE if the interrupt was "Safe", in that the model was left in a repeatable and valid state. 
 | 
|  | 
| BASE_EXPORT string | state () const | 
|  | 
| template<typename... Args> | 
|  | Exception (FormatCheck< std::type_identity_t< Args >... > s, Args &&... args) | 
|  | 
|  | Exception (const string &s) | 
|  | 
|  | Exception (string &&s) | 
|  | 
|  | Exception (const Exception &e) | 
|  | 
|  | Exception (Exception &&e) | 
|  | 
| Exception & | operator= (const Exception &e) | 
|  | 
| Exception & | operator= (Exception &&e) | 
|  | 
| BASE_EXPORT const char * | what () const override  throw () | 
|  | Returns the contents of the error message as a const char. 
 | 
|  | 
| void | setMessage (const string &s) | 
|  | Allows the message carried by the exception to be replaced with a new one. 
 | 
|  | 
Exception thrown when interruption occurs, e.g. user press ESC key. 
◆ InterruptException()
  
  | 
        
          | BASE_EXPORT InterruptException::InterruptException | ( | bool | safe, |  
          |  |  | const string & | state = string() ) |  | inline | 
 
Constructor 
- Parameters
- 
  
    | safe | indicates that is safe to interrupt |  | state | see function state() |  
 
 
 
◆ state()
Only needed for a safe interrupt. A state string to be used to indicate that the conditions required to duplicate the interupt have been met. A case-sensitive match between this string (Stored in the record) and a string representing the current state indicates that an interrupt should be simulated. 
 
 
The documentation for this class was generated from the following file: