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

Error condition. More...

#include <exceptions.hxx>

Public Member Functions

 error (tree::severity s, const std::basic_string< C > &res_id, unsigned long line, unsigned long column, const std::basic_string< C > &message)
 Initialize an instance with error description.
 
tree::severity severity () const
 Get error severity.
 
const std::basic_string< C > & id () const
 Get resource id.
 
unsigned long line () const
 Get error line.
 
unsigned long column () const
 Get error column.
 
const std::basic_string< C > & message () const
 Get error message.
 

Detailed Description

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

Error condition.

Constructor & Destructor Documentation

◆ error()

template<typename C >
error ( tree::severity  s,
const std::basic_string< C > &  res_id,
unsigned long  line,
unsigned long  column,
const std::basic_string< C > &  message 
)

Initialize an instance with error description.

Parameters
sAn error severity.
res_idA resource id where the error occurred.
lineA line number where the error occurred.
columnA column number where the error occurred.
messageA message describing the error.

Member Function Documentation

◆ severity()

template<typename C >
tree::severity severity ( ) const
inline

Get error severity.

Returns
The severity of this error.

◆ id()

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

Get resource id.

Returns
The id of the resource where this error occurred.

◆ line()

template<typename C >
unsigned long line ( ) const
inline

Get error line.

Returns
The line number where this error occurred.

◆ column()

template<typename C >
unsigned long column ( ) const
inline

Get error column.

Returns
The column number where this error occurred.

◆ message()

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

Get error message.

Returns
The message for this error.

The documentation for this class was generated from the following file:

Copyright © 2005-2023 Code Synthesis.