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

Exception indicating that an unexpected element was encountered. More...

#include <exceptions.hxx>

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

Public Member Functions

 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.
 

Detailed Description

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

Exception indicating that an unexpected element was encountered.

Constructor & Destructor Documentation

◆ 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_nameA name of the encountered element.
encountered_nsA namespace of the encountered element.
expected_nameA name of the expected element.
expected_nsA namespace of the expected element.

Member Function Documentation

◆ 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.