ReactOS  0.4.12-dev-75-g00dd17e
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 More...
 

Public Attributes

XS_String _message
 
XS_String _systemId
 
int _line
 
int _column
 
int _error_code
 

Friends

std::ostreamoperator<< (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 {
812 
813  out << *this;
814 
815  return out.str();
816 }
basic_ostringstream< char, char_traits< char >, allocator< char > > ostringstream
Definition: _iosfwd.h:127
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 }
static FILE * out
Definition: regtests2xml.c:44
#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.

Referenced by XMLStorage::XMLReaderBase::read().

◆ _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: