An error class to use when there is an invalid entry in the specification tree.
More...
#include <error.h>
|
| | Spectree_error (PC_tree_t tree, std::string what) |
| | Creates a new Spectree_error.
|
| template<typename... Args> |
| | Spectree_error (PC_tree_t tree, fmt::format_string< Args... > format_str, Args &&... args) |
| | Creates a new Spectree_error.
|
| std::string | full_msg () const override |
| | Gives access to a full error message.
|
| void | rethrow_with_context (std::string msg) const override |
| | Rethrow the error with some context prepended to its description.
|
An error class to use when there is an invalid entry in the specification tree.
◆ Spectree_error() [1/2]
| PDI::Spectree_error::Spectree_error |
( |
PC_tree_t | tree, |
|
|
std::string | what ) |
Creates a new Spectree_error.
- Parameters
-
| [in] | tree | the subtree that's in error |
| [in] | what | an error message |
◆ Spectree_error() [2/2]
template<typename... Args>
| PDI::Spectree_error::Spectree_error |
( |
PC_tree_t | tree, |
|
|
fmt::format_string< Args... > | format_str, |
|
|
Args &&... | args ) |
|
inline |
Creates a new Spectree_error.
- Parameters
-
| [in] | tree | the subtree that's in error |
| [in] | format_str | an error message as a python-style format |
| [in] | args | the fmt parameters for the message |
◆ full_msg()
| std::string PDI::Spectree_error::full_msg |
( |
| ) |
const |
|
overridevirtual |
Gives access to a full error message.
The message includes all available context as well as the info about error type
- Returns
- the full message
Implements PDI::Error.
◆ rethrow_with_context()
| void PDI::Spectree_error::rethrow_with_context |
( |
std::string | context | ) |
const |
|
overridevirtual |
Rethrow the error with some context prepended to its description.
- Parameters
-
| context | the context to prepend to the error message |
Implements PDI::Error.
The documentation for this class was generated from the following file: