Exception indicating that an unexpected element was encountered.
More...
#include <exceptions.hxx>
|
| | unexpected_element (const std::basic_string< C > &encountered_name, const std::basic_string< C > &encountered_ns, const std::basic_string< C > &expected_name, const std::basic_string< C > &expected_ns) |
| | Initialize an instance with the encountered and expected element descriptions.
|
| |
| const std::basic_string< C > & | encountered_name () const |
| | Get the name of the encountered element.
|
| |
| const std::basic_string< C > & | encountered_namespace () const |
| | Get the namespace of the encountered element.
|
| |
| const std::basic_string< C > & | expected_name () const |
| | Get the name of the expected element.
|
| |
| const std::basic_string< C > & | expected_namespace () const |
| | Get the namespace of the expected element.
|
| |
| virtual const char * | what () const throw () |
| | Get exception description.
|
| |
template<typename C>
class xsd::cxx::tree::unexpected_element< C >
Exception indicating that an unexpected element was encountered.
◆ unexpected_element()
template<typename C >
| unexpected_element |
( |
const std::basic_string< C > & |
encountered_name, |
|
|
const std::basic_string< C > & |
encountered_ns, |
|
|
const std::basic_string< C > & |
expected_name, |
|
|
const std::basic_string< C > & |
expected_ns |
|
) |
| |
Initialize an instance with the encountered and expected element descriptions.
- Parameters
-
| encountered_name | A name of the encountered element. |
| encountered_ns | A namespace of the encountered element. |
| expected_name | A name of the expected element. |
| expected_ns | A namespace of the expected element. |
◆ encountered_name()
template<typename C >
| const std::basic_string< C > & encountered_name |
( |
| ) |
const |
|
inline |
Get the name of the encountered element.
- Returns
- The name of the encountered element.
◆ encountered_namespace()
template<typename C >
| const std::basic_string< C > & encountered_namespace |
( |
| ) |
const |
|
inline |
Get the namespace of the encountered element.
- Returns
- The namespace of the encountered element.
◆ expected_name()
template<typename C >
| const std::basic_string< C > & expected_name |
( |
| ) |
const |
|
inline |
Get the name of the expected element.
- Returns
- The name of the expected element.
◆ expected_namespace()
template<typename C >
| const std::basic_string< C > & expected_namespace |
( |
| ) |
const |
|
inline |
Get the namespace of the expected element.
- Returns
- The namespace of the expected element.
◆ what()
template<typename C >
| virtual const char * what |
( |
| ) |
const |
| throw | ( | |
| ) | | |
|
virtual |
Get exception description.
- Returns
- A C string describing the exception.
The documentation for this class was generated from the following file:
Copyright © 2005-2023 Code Synthesis.