errors 0.6.3
All Classes Functions Variables Pages
errors::make< E >::with< Args > Struct Template Reference

#include <errors/make.hpp>

Inheritance diagram for errors::make< E >::with< Args >:
Collaboration diagram for errors::make< E >::with< Args >:

Public Member Functions

 with (Args... args, source_location location=source_location::current())
 Create an error.
 
- Public Member Functions inherited from errors::error_ptr
template<typename E >
bool is () const
 Check if the error is caused by some kind of errors::error recursively.
 
template<typename E >
const E * as () const
 Looking up error in causes.
 
template<typename E >
E * as ()
 Looking up error in causes.
 

Detailed Description

template<typename E>
template<typename... Args>
struct errors::make< E >::with< Args >
See also
with()
Examples
examples/basic-usage/src/main.cpp.

Constructor & Destructor Documentation

◆ with()

template<typename E >
template<typename... Args>
errors::make< E >::with< Args >::with ( Args... args,
source_location location = source_location::current() )
inline

Create an error.

This class and this constructor is used to quickly create an error. It captures the source location from where it is called, and passes it as the last argument with anything you pass to the error constructor.


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