PCL
|
XML parsing error with automatic text location information generation More...
#include <XML.h>
Public Member Functions | |
XMLParseError (const XMLNode &node, const String &whileDoing, const String &whatHappened) | |
XMLParseError (const XMLNodeLocation &where, const String &whileDoing, const String &whatHappened) | |
XMLParseError (const XMLParseError &)=default | |
Public Member Functions inherited from pcl::Error | |
Error ()=default | |
Error (const Error &)=default | |
Error (const String &message) | |
String | Caption () const override |
String | Message () const override |
Public Member Functions inherited from pcl::Exception | |
Exception ()=default | |
Exception (const pcl::Exception &)=default | |
virtual | ~Exception () |
virtual String | ExceptionClass () const |
virtual String | FormatInfo () const |
virtual void | Show () const |
PCL_FORCE_INLINE void | ShowOnConsole () const |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::Exception | |
static void | DisableConsoleOutput (bool disable=true) |
static void | DisableGUIOutput (bool disable=true) |
static void | EnableConsoleOutput (bool=true) |
static void | EnableGUIOutput (bool=true) |
static bool | IsConsoleOutputEnabled () |
static bool | IsGUIOutputEnabled () |
The XMLParseError is useful to generate warning and error messages during document parsing tasks, with automatic generation of text location information (when available) and a normalized representation of error messages.
|
inline |
Constructs an XMLParseError object with a reference to an XMLNode instance.
node | Reference to the XMLNode object that has caused the exception. |
whileDoing | Identifies the parsing action that was taking place. For example: "Parsing Metadata child Image element". |
whatHappened | Describes the error that has been detected. For example: "Missing id attribute". |
This constructor inserts node location information, if available, and joins the strings appropriately to build an error message.
|
inline |
Constructs an XMLParseError object with a reference to an XMLNodeLocation instance.
where | Reference to an XMLNodeLocation object to retrieve text location information. |
whileDoing | Identifies the parsing action that was taking place. For example: "Parsing Metadata child Image element". |
whatHappened | Describes the error that has been detected. For example: "Missing id attribute". |
This constructor inserts node location information, if available, and joins the strings appropriately to build an error message.
|
default |
Copy constructor.