ADTF  3.18.2
Error

Exception helper class to collect information while parsing, adding DD Objects or other failed operatons. More...

Inheritance diagram for Error:
[legend]

Public Member Functions

 Error (const std::string &oo_type_operation, const std::string &message)
 CTOR. More...
 
 Error (const std::string &oo_type_operation, const std::vector< std::string > &oo_operation_args, const std::string &message)
 CTOR with arguments. More...
 
 Error (const std::string &oo_type_operation, const std::vector< std::string > &oo_operation_args, const std::string &message, const std::vector< Problem > &problems)
 CTOR with arguments. More...
 
const std::vector< Problem > & problems () const
 get the problems More...
 
char const * what () const noexcept override
 get the problem message More...
 

Static Private Member Functions

static std::string joinArgs (const std::vector< std::string > &oo_operation_args)
 

Private Attributes

std::string _message
 
std::vector< Problem_problems
 

Detailed Description

Exception helper class to collect information while parsing, adding DD Objects or other failed operatons.

Definition at line 60 of file dd_error.h.

Constructor & Destructor Documentation

◆ Error() [1/3]

Error ( const std::string &  oo_type_operation,
const std::string &  message 
)
inline

CTOR.

Parameters
oo_type_operationname of the operation
messagethe message to set

Definition at line 71 of file dd_error.h.

◆ Error() [2/3]

Error ( const std::string &  oo_type_operation,
const std::vector< std::string > &  oo_operation_args,
const std::string &  message 
)
inline

CTOR with arguments.

Parameters
oo_type_operationname of the operation
oo_operation_argslist of the given arguments
messagethe message to set

Definition at line 84 of file dd_error.h.

◆ Error() [3/3]

Error ( const std::string &  oo_type_operation,
const std::vector< std::string > &  oo_operation_args,
const std::string &  message,
const std::vector< Problem > &  problems 
)
inline

CTOR with arguments.

Parameters
oo_type_operationname of the operation
oo_operation_argslist of the given arguments
messagethe message to set
problemsthe problems (usually the validation protocol)

Definition at line 100 of file dd_error.h.

Member Function Documentation

◆ problems()

const std::vector<Problem>& problems ( ) const
inline

get the problems

Returns
std::vector<Problem>&

Definition at line 112 of file dd_error.h.

◆ what()

char const* what ( ) const
inlineoverridenoexcept

get the problem message

Returns
const char*

Definition at line 121 of file dd_error.h.