MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ error() [2/2]

template<typename ExceptionType = std::runtime_error>
void MayaFlux::Journal::error ( Component  component,
Context  context,
std::source_location  location,
std::string_view  message 
)

Log an error message and optionally throw an exception.

Template Parameters
ExceptionTypeThe exception type to throw when behavior == LogAndThrow.
Parameters
contextThe execution context of the log message.
locationSource location (file, line, function) of the log call.
messageThe error message content.

Definition at line 266 of file Archivist.hpp.

269{
270 Archivist::instance().scribe(Severity::ERROR, component, context, message, location);
271
272 throw ExceptionType(std::string(message));
273}

References ERROR, MayaFlux::Journal::Archivist::instance(), and MayaFlux::Journal::Archivist::scribe().

+ Here is the call graph for this function: