Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_XmlException Class Reference
[eFLTK XML module]

EFLTK xml extension throws Fl_XmlException type exceptions. More...

#include <Fl_Xml.h>

List of all members.

Public Types

enum  ErrorCodes {
  NO_ERROR = 0, UNKNOWN, OPENTAG_EXPECTED, OPENTAG_CDATA_EXPECTED,
  CLOSETAG_EXPECTED, PI_DOCTYPE_EXPECTED, TAGNAME_EXPECTED, COMMENT_START_EXPECTED,
  COMMENT_END_MISSING, SLASH_EXPECTED, TAGNAME_MISMATCH, EQUAL_EXPECTED,
  VALUE_EXPECTED
}
 XML extension error codes enumeration. More...


Public Methods

 Fl_XmlException (int error, Fl_XmlLocator *locator)
 Constructs new exception. More...

Fl_String text (bool short_version=false) const
 Returns human readable error string. More...

int error () const
 Returns errorcode of last error happened.

Fl_XmlLocatorlocator () const
 Returns locator for error occured. More...


Static Public Methods

const char * error_string (int error)
 Return error string for given errorcode.


Detailed Description

EFLTK xml extension throws Fl_XmlException type exceptions.

You should catch always atleast these type of exceptions, when processing XML.

Definition at line 22 of file Fl_Xml.h.


Member Enumeration Documentation

enum Fl_XmlException::ErrorCodes
 

XML extension error codes enumeration.

Enumeration values:
NO_ERROR  Operation success.
UNKNOWN  Unspecified or unknown error.
OPENTAG_EXPECTED  Expected an open tag literal '<'.
OPENTAG_CDATA_EXPECTED  Expected a '<' or cdata.
CLOSETAG_EXPECTED  Expected a '>' closing tag literal.
PI_DOCTYPE_EXPECTED  Expected a processing instruction or doctype tag.
TAGNAME_EXPECTED  Expected a tag name after '<' or '</'.
COMMENT_START_EXPECTED  Starting '--' of comment expected after '!'.
COMMENT_END_MISSING  Ending '-->' missing.
SLASH_EXPECTED  Expected a '/' after closing tag literal '<'.
TAGNAME_MISMATCH  Tag name from start and end tag mismatch.
EQUAL_EXPECTED  Expected '=' after attribute name.
VALUE_EXPECTED  Expected value after an '=' in attribute.

Definition at line 28 of file Fl_Xml.h.


Constructor & Destructor Documentation

Fl_XmlException::Fl_XmlException int    error,
Fl_XmlLocator   locator
[inline]
 

Constructs new exception.

Parameters:
error, error  code for error
locator, XML  locator for stream

Definition at line 49 of file Fl_Xml.h.


Member Function Documentation

Fl_XmlLocator* Fl_XmlException::locator   const [inline]
 

Returns locator for error occured.

NULL, if no locator specified in Fl_XmlParser

Definition at line 66 of file Fl_Xml.h.

Fl_String Fl_XmlException::text bool    short_version = false const
 

Returns human readable error string.

Parameters:
short_version, return  short version of error string


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 15:33:58 2003 for eFLTK by doxygen1.2.15