fp
Functional Programming extensions to C++ for ROS projects.
fp::Error Struct Reference

Error type used by Result<T> More...

#include <result.hpp>

Public Member Functions

bool operator== (const Error &other) const noexcept
 
bool operator!= (const Error &other) const noexcept
 

Public Attributes

ErrorCode code = ErrorCode::UNKNOWN
 
std::string what = ""
 

Detailed Description

Error type used by Result<T>

Examples
no_discard.cpp.

Definition at line 71 of file result.hpp.

Member Function Documentation

◆ operator!=()

bool fp::Error::operator!= ( const Error other) const
inlinenoexcept

Definition at line 78 of file result.hpp.

◆ operator==()

bool fp::Error::operator== ( const Error other) const
inlinenoexcept

Definition at line 75 of file result.hpp.

Member Data Documentation

◆ code

ErrorCode fp::Error::code = ErrorCode::UNKNOWN

Definition at line 72 of file result.hpp.

◆ what

std::string fp::Error::what = ""

Definition at line 73 of file result.hpp.