ReactOS 0.4.15-dev-7942-gd23573b
XMLStorage::XMLError Struct Reference

XML Error with message and location. More...

#include <xmlstorage.h>

Collaboration diagram for XMLStorage::XMLError:

Public Member Functions

 XMLError ()
 
std::string str () const
 return formated error message
 

Public Attributes

XS_String _message
 
XS_String _systemId
 
int _line
 
int _column
 
int _error_code
 

Friends

std::ostream & operator<< (std::ostream &, const XMLError &err)
 

Detailed Description

XML Error with message and location.

Definition at line 663 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ XMLError()

XMLStorage::XMLError::XMLError ( )
inline

Definition at line 665 of file xmlstorage.h.

666 : _line(0),
667 _column(0),
668 _error_code(0)
669 {
670 }

Member Function Documentation

◆ str()

std::string XMLStorage::XMLError::str ( ) const

return formated error message

Definition at line 809 of file xmlstorage.cpp.

810{
811 std::ostringstream out;
812
813 out << *this;
814
815 return out.str();
816}
static FILE * out
Definition: regtests2xml.c:44

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  out,
const XMLError err 
)
friend

Definition at line 673 of file xmlstorage.cpp.

674{
675 out << err._systemId << "(" << err._line << ") [column " << err._column << "] : "
676 << err._message;
677
678 return out;
679}
#define err(...)

Member Data Documentation

◆ _column

int XMLStorage::XMLError::_column

Definition at line 678 of file xmlstorage.h.

◆ _error_code

int XMLStorage::XMLError::_error_code

Definition at line 679 of file xmlstorage.h.

◆ _line

int XMLStorage::XMLError::_line

Definition at line 677 of file xmlstorage.h.

◆ _message

XS_String XMLStorage::XMLError::_message

Definition at line 675 of file xmlstorage.h.

◆ _systemId

XS_String XMLStorage::XMLError::_systemId

Definition at line 676 of file xmlstorage.h.


The documentation for this struct was generated from the following files: