DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Tasks::RestartNeeded Class Reference

Detailed Description

The emitting task has encountered an error that can possibly be recovered by a restart.

Public Member Functions

 RestartNeeded (const std::string &msg, unsigned delay, bool error=true)
 
unsigned getDelay (void) const
 
bool isError (void) const
 
const char * getError (void)
 

Constructor & Destructor Documentation

DUNE::Tasks::RestartNeeded::RestartNeeded ( const std::string &  msg,
unsigned  delay,
bool  error = true 
)
inline

Constructor.

Parameters
[in]msgmessage.
[in]delayamount of seconds to wait before restarting
[in]errortrue if an error should be emitted, false otherwise.

Member Function Documentation

unsigned DUNE::Tasks::RestartNeeded::getDelay ( void  ) const
inline

Retrieve the amount of seconds that must elapse before restarting the task.

Referenced by DUNE::Tasks::Task::deactivationFailed().

const char* DUNE::Tasks::RestartNeeded::getError ( void  )
inline

Retrieve error message.

Returns
error message.

Referenced by DUNE::Tasks::Task::deactivationFailed(), and DUNE::Tasks::Task::loadConfig().

bool DUNE::Tasks::RestartNeeded::isError ( void  ) const
inline
Collaboration diagram for DUNE::Tasks::RestartNeeded:
Collaboration graph