Sourcemeta Core 0.0.0
Loading...
Searching...
No Matches
Error

A growing collection of error utilities. More...

Classes

class  sourcemeta::core::FileError< T >

Detailed Description

A growing collection of error utilities.

This functionality is included as follows:

#include <sourcemeta/core/error.h>

Class Documentation

◆ sourcemeta::core::FileError

class sourcemeta::core::FileError
template<typename T>
class sourcemeta::core::FileError< T >

A wrapper that decorates an arbitrary exception type with a file path.

#include <sourcemeta/core/error.h>
#include <stdexcept>
"/tmp/foo.json", "something went wrong");
Definition error_file.h:19
Inheritance diagram for sourcemeta::core::FileError< T >:

Public Member Functions

template<typename... Args>
 FileError (std::filesystem::path path, Args &&...args)
auto path () const noexcept -> const std::filesystem::path &
 The offending file path.

Constructor & Destructor Documentation

◆ FileError()

template<typename T>
template<typename... Args>
sourcemeta::core::FileError< T >::FileError ( std::filesystem::path path,
Args &&... args )
inline

Construct the error given the offending file path and the underlying exception arguments.