C++/Tree Mapping Runtime Library
Public Member Functions | List of all members
expected_element< C > Class Template Reference

Exception indicating that an expected element was not encountered. More...

#include <exceptions.hxx>

Inheritance diagram for expected_element< C >:
exception< C >

Public Member Functions

 expected_element (const std::basic_string< C > &name, const std::basic_string< C > &ns)
 Initialize an instance with the expected element description.
 
const std::basic_string< C > & name () const
 Get the name of the expected element.
 
const std::basic_string< C > & namespace_ () const
 Get the namespace of the expected element.
 
virtual const char * what () const throw ()
 Get exception description.
 

Detailed Description

template<typename C>
class xsd::cxx::tree::expected_element< C >

Exception indicating that an expected element was not encountered.

Constructor & Destructor Documentation

◆ expected_element()

template<typename C >
expected_element ( const std::basic_string< C > &  name,
const std::basic_string< C > &  ns 
)

Initialize an instance with the expected element description.

Parameters
nameA name of the expected element.
nsA namespace of the expected element.

Member Function Documentation

◆ name()

template<typename C >
const std::basic_string< C > & name ( ) const
inline

Get the name of the expected element.

Returns
The name of the expected element.

◆ namespace_()

template<typename C >
const std::basic_string< C > & 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.