Error condition.
More...
#include <exceptions.hxx>
|
| | 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.
|
| |
template<typename C>
class xsd::cxx::tree::error< C >
Error condition.
◆ 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
-
| s | An error severity. |
| res_id | A resource id where the error occurred. |
| line | A line number where the error occurred. |
| column | A column number where the error occurred. |
| message | A message describing the error. |
◆ severity()
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.