XmlReader::XmlReaderException Class Reference

An exception class representing an error or warning while reading and parsing. More...

#include <xmlreader.h>

Inheritance diagram for XmlReader::XmlReaderException:

Inheritance graph

List of all members.

Public Member Functions

 XmlReaderException (std::string msg, bool binary)
virtual ~XmlReaderException ()
bool isBinary ()
virtual std::string str ()


Detailed Description

An exception class representing an error or warning while reading and parsing.

Definition at line 368 of file xmlreader.h.


Constructor & Destructor Documentation

XmlReader::XmlReaderException::XmlReaderException ( std::string  msg,
bool  binary 
)

Create a new XmlReaderException.

Parameters:
msg The message associated with this exception.
binary The file (or string) being parsed is likely a binary file. It is easy for the parser to determine when the parse string is likely a binary (or non-XML) file. Since the application supports loading of some older binary files, this is useful information for the caller as they can attempt to load the file using the old deserialization methods.

Definition at line 385 of file xmlreader.h.

virtual XmlReader::XmlReaderException::~XmlReaderException (  )  [virtual]

Definition at line 389 of file xmlreader.h.


Member Function Documentation

bool XmlReader::XmlReaderException::isBinary (  ) 

Returns the state of the binary flag.

Returns:
Is this possibly a binary file?

Definition at line 396 of file xmlreader.h.

virtual std::string XmlReader::XmlReaderException::str (  )  [virtual]

This override appends an additional notice when the file may be binary.

Returns:
The message associated with this exception.

Definition at line 408 of file xmlreader.h.


Software Development Kit - Opticks 4.9.0 Build 16218