libdballe 9.6
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
dballe::cmdline::ProcessingException Struct Reference

Exception used to embed processing issues that mean that processing of the current element can safely be skipped. More...

#include <processor.h>

Inheritance diagram for dballe::cmdline::ProcessingException:

Public Member Functions

 ProcessingException (const std::string &filename, unsigned index, const std::string &msg)
 Create a new exception.
 
 ProcessingException (const std::string &filename, unsigned index, const std::exception &original)
 Create a new exception.
 
 ProcessingException (const std::string &filename, unsigned index, const std::string &msg, const std::exception &original)
 Create a new exception.
 
virtual const char * what () const throw ()
 

Public Attributes

std::string filename
 
unsigned index
 
std::string msg
 

Protected Member Functions

void initmsg (const std::string &fname, unsigned index, const char *msg)
 

Detailed Description

Exception used to embed processing issues that mean that processing of the current element can safely be skipped.

When this exception is caught we know, for example, that no output has been produced for the item currently being processed.

Constructor & Destructor Documentation

◆ ProcessingException() [1/3]

dballe::cmdline::ProcessingException::ProcessingException ( const std::string &  filename,
unsigned  index,
const std::string &  msg 
)
inline

Create a new exception.

Parameters
filenameInput file being processed
indexIndex of the data being processed in the input file
msgError message

◆ ProcessingException() [2/3]

dballe::cmdline::ProcessingException::ProcessingException ( const std::string &  filename,
unsigned  index,
const std::exception &  original 
)
inline

Create a new exception.

Parameters
filenameInput file being processed
indexIndex of the data being processed in the input file
original(optional) original exception that was caught from the underlying subsystem

◆ ProcessingException() [3/3]

dballe::cmdline::ProcessingException::ProcessingException ( const std::string &  filename,
unsigned  index,
const std::string &  msg,
const std::exception &  original 
)
inline

Create a new exception.

Parameters
filenameInput file being processed
indexIndex of the data being processed in the input file
msgError message
original(optional) original exception that was caught from the underlying subsystem

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