tbx  0.7.6
Public Types | Public Member Functions | List of all members
tbx::TagException Class Reference

Exception thrown when reading a saved tag fails. More...

#include <tag.h>

Inheritance diagram for tbx::TagException:

Public Types

enum  Cause {
  None, EmptyFile, ErrorReading, EndTagNotMatch,
  InvalidTagStartChar, InvalidTagEndChar, InvalidNameEnd, MissingTagName,
  InvalidStringStart, InvalidStringEnd, InvalidEntityEnd, InvalidEntity
}
 Enumeration describing the reason for a tag exception.
 

Public Member Functions

 TagException (Cause cause, const std::string &item)
 Constructor for error with an item name.
 
 TagException (Cause cause, char c)
 Contructor for error due to invalid character.
 
Cause cause () const
 Return enumeration value specifying the cause of the exception.
 
const std::string & item () const
 Return the item or character the exception happened on.
 

Detailed Description

Exception thrown when reading a saved tag fails.


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