Class timeout_error

Inheritance Relationships

Base Type

Class Documentation

class timeout_error : public sick::runtime_error

A timeout error during I/O related operations.

Public Functions

explicit timeout_error() = delete

Deleted default constructor of the timeout error object.

inline explicit timeout_error(const std::string &msg, timeval timeout)

Constructor of the timeout error object.

Parameters:
  • msg – A description of the reason for the failure.

  • timeout – The timeout that has been exceeded represented as timeval-struct. The timeout information is appended as string after the message string.

inline explicit timeout_error(const std::string &msg, boost::posix_time::time_duration timeout)

Constructor of the timeout error object.

Parameters:
  • msg – A description of the reason for the failure.

  • timeout – The timeout that has been exceeded represented in boost::posix_time::timeduration. The timeout information is appended as string after the message string.

inline virtual const char *what() const noexcept override

Returns the error message as char-string.

Returns:

const char* Returns the error message.