Public Member Functions | Public Attributes | List of all members
mcap::Status Struct Reference

Wraps a status code and string message carrying additional context. More...

#include <errors.hpp>

Public Member Functions

bool ok () const
 
 Status ()
 
 Status (StatusCode code)
 
 Status (StatusCode code, const std::string &message)
 

Public Attributes

StatusCode code
 
std::string message
 

Detailed Description

Wraps a status code and string message carrying additional context.

Definition at line 35 of file errors.hpp.

Constructor & Destructor Documentation

◆ Status() [1/3]

mcap::Status::Status ( )
inline

Definition at line 39 of file errors.hpp.

◆ Status() [2/3]

mcap::Status::Status ( StatusCode  code)
inline

Definition at line 42 of file errors.hpp.

◆ Status() [3/3]

mcap::Status::Status ( StatusCode  code,
const std::string &  message 
)
inline

Definition at line 107 of file errors.hpp.

Member Function Documentation

◆ ok()

bool mcap::Status::ok ( ) const
inline

Definition at line 111 of file errors.hpp.

Member Data Documentation

◆ code

StatusCode mcap::Status::code

Definition at line 36 of file errors.hpp.

◆ message

std::string mcap::Status::message

Definition at line 37 of file errors.hpp.


The documentation for this struct was generated from the following file:


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52