Exception helper class to collect information while parsing, adding DD Objects or other failed operatons.
More...
|
| 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 std::string | joinArgs (const std::vector< std::string > &oo_operation_args) |
|
|
std::string | _message |
|
std::vector< Problem > | _problems |
|
Exception helper class to collect information while parsing, adding DD Objects or other failed operatons.
Definition at line 60 of file dd_error.h.
◆ Error() [1/3]
Error |
( |
const std::string & |
oo_type_operation, |
|
|
const std::string & |
message |
|
) |
| |
|
inline |
CTOR.
- Parameters
-
oo_type_operation | name of the operation |
message | the 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_operation | name of the operation |
oo_operation_args | list of the given arguments |
message | the 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_operation | name of the operation |
oo_operation_args | list of the given arguments |
message | the message to set |
problems | the problems (usually the validation protocol) |
Definition at line 100 of file dd_error.h.
◆ 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.