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

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

#include <exceptions.hxx>

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

Public Member Functions

 unexpected_enumerator (const std::basic_string< C > &e)
 Initialize an instance with the encountered enumerator.
 
const std::basic_string< C > & enumerator () const
 Get the value of the encountered enumerator.
 
virtual const char * what () const throw ()
 Get exception description.
 

Detailed Description

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

Exception indicating that an unexpected enumerator was encountered.

Constructor & Destructor Documentation

◆ unexpected_enumerator()

template<typename C >
unexpected_enumerator ( const std::basic_string< C > &  e)

Initialize an instance with the encountered enumerator.

Parameters
eA value of the encountered enumerator.

Member Function Documentation

◆ enumerator()

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

Get the value of the encountered enumerator.

Returns
The value of the encountered enumerator.

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