# Error.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/async/Error.hpp"

# Error

Class to hold and communicate errors between Coroutines

namespace oatpp { namespace async { 
  class Error : public oatpp::base::Countable {}

# Methods

Return Type Name Summary
[none] Error Constructor.
[none] ~Error Virtual destructor.
const char* what Error explanation.
bool is Check if error belongs to specified class.

# Error::Error


  • @param what - error explanation.

Error(const std::string& what)

# Error::~Error

Virtual destructor.

virtual ~Error() = default

# Error::what

Error explanation.

  • @return

const char* what() const

# Error::is

Check if error belongs to specified class.

  • @tparam ErrorClass
  • @return - true if error is of specified class

template<class ErrorClass>
bool is() const