Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::ExceptionOutput Class Referencefinal

Save an exception to the 'result' for diagnostic output. More...

#include <ExceptionOutput.hh>

Inheritance diagram for celeritas::ExceptionOutput:
Inheritance graph
[legend]

Public Member Functions

 ExceptionOutput (std::exception_ptr e)
 Construct with an exception pointer.
 
 ~ExceptionOutput ()
 Default destructor.
 
Category category () const final
 Category of data to write.
 
std::string_view label () const final
 Key for the entry inside the category.
 
void output (JsonPimpl *) const final
 Write output to the given JSON object.
 

Additional Inherited Members

- Public Types inherited from celeritas::OutputInterface
enum class  Category {
  input , result , system , internal ,
  size_
}
 Output category (TODO: could replace with string/cstring?)
 

Detailed Description

Save an exception to the 'result' for diagnostic output.

try
{
...
}
catch (...)
{
output_mgr.insert(std::make_shared<ExceptionOutput>(
std::current_exception()));
}

The documentation for this class was generated from the following files: